From 96bffce005c4f7c293e8d36878b19221f4f5a0ef Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 21 Mar 2024 11:40:58 -0700 Subject: [PATCH 01/12] Always set impliedNodeFormat; query it conditionally for emit, module resolution, and interop --- src/compiler/_namespaces/ts.ts | 2 +- src/compiler/checker.ts | 100 +++++++++------ src/compiler/diagnosticMessages.json | 4 + src/compiler/emitter.ts | 3 + src/compiler/factory/utilities.ts | 8 +- src/compiler/moduleSpecifiers.ts | 21 ++-- src/compiler/program.ts | 116 +++++++++++++----- src/compiler/transformer.ts | 18 ++- ...{node.ts => impliedNodeFormatDependent.ts} | 10 +- src/compiler/transformers/module/module.ts | 3 +- src/compiler/types.ts | 73 +++++++++-- src/compiler/utilities.ts | 92 +++++++++++++- src/compiler/watch.ts | 6 +- src/services/codefixes/importFixes.ts | 11 +- src/services/completions.ts | 6 + src/services/goToDefinition.ts | 3 +- src/services/importTracker.ts | 4 +- src/services/suggestionDiagnostics.ts | 3 +- src/services/utilities.ts | 9 +- .../unittests/tsc/projectReferences.ts | 45 +++++++ .../unittests/tscWatch/incremental.ts | 6 +- 21 files changed, 421 insertions(+), 122 deletions(-) rename src/compiler/transformers/module/{node.ts => impliedNodeFormatDependent.ts} (83%) diff --git a/src/compiler/_namespaces/ts.ts b/src/compiler/_namespaces/ts.ts index 1ce7091080e7a..ad0cc45607eec 100644 --- a/src/compiler/_namespaces/ts.ts +++ b/src/compiler/_namespaces/ts.ts @@ -54,7 +54,7 @@ export * from "../transformers/generators"; export * from "../transformers/module/module"; export * from "../transformers/module/system"; export * from "../transformers/module/esnextAnd2015"; -export * from "../transformers/module/node"; +export * from "../transformers/module/impliedNodeFormatDependent"; export * from "../transformers/declarations/diagnostics"; export * from "../transformers/declarations"; export * from "../transformer"; diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 51de9ee7d303a..c1b071613c9c7 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -60,6 +60,7 @@ import { canHaveJSDoc, canHaveLocals, canHaveModifiers, + canHaveModuleSpecifier, canHaveSymbol, canUsePropertyAccess, cartesianProduct, @@ -258,6 +259,7 @@ import { getDeclarationsOfKind, getDeclaredExpandoInitializer, getDecorators, + getDefaultResolutionModeForFile, getDirectoryPath, getEffectiveBaseTypeNode, getEffectiveConstraintOfTypeParameter, @@ -272,6 +274,7 @@ import { getEffectiveTypeParameterDeclarations, getElementOrPropertyAccessName, getEmitDeclarations, + getEmitModuleFormatOfFile, getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, @@ -406,6 +409,7 @@ import { IdentifierTypePredicate, idText, IfStatement, + impliedNodeFormatForEmit, ImportAttribute, ImportAttributes, ImportCall, @@ -4065,27 +4069,36 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { || isNamespaceExport(node)); } - function getUsageModeForExpression(usage: Expression) { - return isStringLiteralLike(usage) ? host.getModeForUsageLocation(getSourceFileOfNode(usage), usage) : undefined; + function getEmitSyntaxForModuleSpecifierExpression(usage: Expression) { + return isStringLiteralLike(usage) ? host.getEmitSyntaxForUsageLocation(getSourceFileOfNode(usage), usage) : undefined; } function isESMFormatImportImportingCommonjsFormatFile(usageMode: ResolutionMode, targetMode: ResolutionMode) { return usageMode === ModuleKind.ESNext && targetMode === ModuleKind.CommonJS; } - function isOnlyImportedAsDefault(usage: Expression) { - const usageMode = getUsageModeForExpression(usage); - return usageMode === ModuleKind.ESNext && endsWith((usage as StringLiteralLike).text, Extension.Json); + function isOnlyImportableAsDefault(usage: Expression) { + // In Node.js, JSON modules don't get named exports + if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { + const usageMode = getEmitSyntaxForModuleSpecifierExpression(usage); + return usageMode === ModuleKind.ESNext && endsWith((usage as StringLiteralLike).text, Extension.Json); + } + return false; } function canHaveSyntheticDefault(file: SourceFile | undefined, moduleSymbol: Symbol, dontResolveAlias: boolean, usage: Expression) { - const usageMode = file && getUsageModeForExpression(usage); - if (file && usageMode !== undefined && ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { - const result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat); - if (usageMode === ModuleKind.ESNext || result) { - return result; + const usageMode = file && getEmitSyntaxForModuleSpecifierExpression(usage); + if (file && usageMode !== undefined) { + const targetMode = impliedNodeFormatForEmit(file, compilerOptions); + if (usageMode === ModuleKind.ESNext && targetMode === ModuleKind.CommonJS && ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { + // In Node.js, CommonJS modules always have a synthetic default when imported into ESM + return true; + } + if (usageMode === ModuleKind.ESNext && targetMode === ModuleKind.ESNext) { + // No matter what the `module` setting is, if we're confident that both files + // are ESM, there cannot be a synthetic default. + return false; } - // fallthrough on cjs usages so we imply defaults for interop'd imports, too } if (!allowSyntheticDefaultImports) { return false; @@ -4138,7 +4151,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if (!specifier) { return exportDefaultSymbol; } - const hasDefaultOnly = isOnlyImportedAsDefault(specifier); + const hasDefaultOnly = isOnlyImportableAsDefault(specifier); const hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier); if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) { if (hasExportAssignmentSymbol(moduleSymbol) && !allowSyntheticDefaultImports) { @@ -4317,7 +4330,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { let symbolFromModule = getExportOfModule(targetSymbol, name, specifier, dontResolveAlias); if (symbolFromModule === undefined && name.escapedText === InternalSymbolName.Default) { const file = moduleSymbol.declarations?.find(isSourceFile); - if (isOnlyImportedAsDefault(moduleSpecifier) || canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, moduleSpecifier)) { + if (isOnlyImportableAsDefault(moduleSpecifier) || canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, moduleSpecifier)) { symbolFromModule = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias); } } @@ -5019,7 +5032,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { findAncestor(location, isImportDeclaration)?.moduleSpecifier || findAncestor(location, isExternalModuleImportEqualsDeclaration)?.moduleReference.expression || findAncestor(location, isExportDeclaration)?.moduleSpecifier; - const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : currentSourceFile.impliedNodeFormat; + const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) + ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) + : getDefaultResolutionModeForFile(currentSourceFile, compilerOptions); const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions); const resolvedModule = host.getResolvedModule(currentSourceFile, moduleReference, mode)?.resolvedModule; const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile); @@ -5306,7 +5321,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } const targetFile = moduleSymbol?.declarations?.find(isSourceFile); - const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getUsageModeForExpression(reference), targetFile.impliedNodeFormat); + const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getEmitSyntaxForModuleSpecifierExpression(reference), impliedNodeFormatForEmit(targetFile, compilerOptions)); if (getESModuleInterop(compilerOptions) || isEsmCjsRef) { let sigs = getSignaturesOfStructuredType(type, SignatureKind.Call); if (!sigs || !sigs.length) { @@ -8094,8 +8109,12 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } return getSourceFileOfNode(getNonAugmentationDeclaration(symbol)!).fileName; // A resolver may not be provided for baselines and errors - in those cases we use the fileName in full } - const contextFile = getSourceFileOfNode(getOriginalNode(context.enclosingDeclaration)); - const resolutionMode = overrideImportMode || contextFile?.impliedNodeFormat; + const enclosingDeclaration = getOriginalNode(context.enclosingDeclaration); + const originalModuleSpecifier = canHaveModuleSpecifier(enclosingDeclaration) ? tryGetModuleSpecifierFromDeclaration(enclosingDeclaration) : undefined; + const contextFile = getSourceFileOfNode(enclosingDeclaration); + const resolutionMode = overrideImportMode + || originalModuleSpecifier && host.getModeForUsageLocation(contextFile, originalModuleSpecifier) + || contextFile && getDefaultResolutionModeForFile(contextFile, compilerOptions); const cacheKey = createModeAwareCacheKey(contextFile.path, resolutionMode); const links = getSymbolLinks(symbol); let specifier = links.specifierCache && links.specifierCache.get(cacheKey); @@ -36112,7 +36131,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } function getTypeWithSyntheticDefaultOnly(type: Type, symbol: Symbol, originalSymbol: Symbol, moduleSpecifier: Expression) { - const hasDefaultOnly = isOnlyImportedAsDefault(moduleSpecifier); + const hasDefaultOnly = isOnlyImportableAsDefault(moduleSpecifier); if (hasDefaultOnly && type && !isErrorType(type)) { const synthType = type as SyntheticDefaultModuleType; if (!synthType.defaultOnlyType) { @@ -42751,7 +42770,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function checkCollisionWithRequireExportsInGeneratedCode(node: Node, name: Identifier | undefined) { // No need to check for require or exports for ES6 modules and later - if (moduleKind >= ModuleKind.ES2015 && !(moduleKind >= ModuleKind.Node16 && getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS)) { + if (getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) >= ModuleKind.ES2015) { return; } @@ -44635,7 +44654,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function checkClassNameCollisionWithObject(name: Identifier): void { if ( languageVersion >= ScriptTarget.ES5 && name.escapedText === "Object" - && (moduleKind < ModuleKind.ES2015 || getSourceFileOfNode(name).impliedNodeFormat === ModuleKind.CommonJS) + && getEmitModuleFormatOfFile(getSourceFileOfNode(name), compilerOptions) < ModuleKind.ES2015 ) { error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); // https://github.com/Microsoft/TypeScript/issues/17494 } @@ -46047,7 +46066,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if ( compilerOptions.verbatimModuleSyntax && node.parent.kind === SyntaxKind.SourceFile && - (moduleKind === ModuleKind.CommonJS || node.parent.impliedNodeFormat === ModuleKind.CommonJS) + getEmitModuleFormatOfFile(node.parent, compilerOptions) === ModuleKind.CommonJS ) { const exportModifier = node.modifiers?.find(m => m.kind === SyntaxKind.ExportKeyword); if (exportModifier) { @@ -46327,10 +46346,22 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { compilerOptions.verbatimModuleSyntax && node.kind !== SyntaxKind.ImportEqualsDeclaration && !isInJSFile(node) && - (moduleKind === ModuleKind.CommonJS || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS) + getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS ) { error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } + else if ( + moduleKind === ModuleKind.Preserve && + node.kind !== SyntaxKind.ImportEqualsDeclaration && + node.kind !== SyntaxKind.VariableDeclaration && + getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS + ) { + // In `--module preserve`, ESM input syntax emits ESM output syntax, but there will be times + // when we look at the `impliedNodeFormat` of this file and decide it's CommonJS. To avoid + // that inconsistency, we disallow ESM syntax in files that are unambiguously CommonJS in + // this mode. + error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve); + } } if (isImportSpecifier(node)) { @@ -46379,7 +46410,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { node.kind === SyntaxKind.ImportSpecifier && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && - moduleKind !== ModuleKind.System && (moduleKind < ModuleKind.ES2015 || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS) + getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System ) { checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportDefault); } @@ -46400,7 +46431,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return; // Other grammar checks do not apply to type-only imports with resolution mode assertions } - const mode = (moduleKind === ModuleKind.NodeNext) && declaration.moduleSpecifier && getUsageModeForExpression(declaration.moduleSpecifier); + const mode = (moduleKind === ModuleKind.NodeNext) && declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier); if (mode !== ModuleKind.ESNext && moduleKind !== ModuleKind.ESNext && moduleKind !== ModuleKind.Preserve) { const message = isImportAttributes ? moduleKind === ModuleKind.NodeNext @@ -46443,7 +46474,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if (importClause.namedBindings) { if (importClause.namedBindings.kind === SyntaxKind.NamespaceImport) { checkImportBinding(importClause.namedBindings); - if (moduleKind !== ModuleKind.System && (moduleKind < ModuleKind.ES2015 || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS) && getESModuleInterop(compilerOptions)) { + if (getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System && getESModuleInterop(compilerOptions)) { // import * as ns from "foo"; checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportStar); } @@ -46492,8 +46523,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } } else { - if (moduleKind >= ModuleKind.ES2015 && moduleKind !== ModuleKind.Preserve && getSourceFileOfNode(node).impliedNodeFormat === undefined && !node.isTypeOnly && !(node.flags & NodeFlags.Ambient)) { - // Import equals declaration is deprecated in es6 or above + if (ModuleKind.ES2015 <= moduleKind && moduleKind <= ModuleKind.ESNext && !node.isTypeOnly && !(node.flags & NodeFlags.Ambient)) { + // Import equals declaration cannot be emitted as ESM grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); } } @@ -46533,7 +46564,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { else if (node.exportClause) { checkAliasSymbol(node.exportClause); } - if (moduleKind !== ModuleKind.System && (moduleKind < ModuleKind.ES2015 || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS)) { + if (getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System) { if (node.exportClause) { // export * as ns from "foo"; // For ES2015 modules, we emit it as a pair of `import * as a_1 ...; export { a_1 as ns }` and don't need the helper. @@ -46592,8 +46623,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { else { if ( getESModuleInterop(compilerOptions) && - moduleKind !== ModuleKind.System && - (moduleKind < ModuleKind.ES2015 || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS) && + getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System && idText(node.propertyName || node.name) === "default" ) { checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportDefault); @@ -46634,7 +46664,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & NodeFlags.Ambient) && compilerOptions.verbatimModuleSyntax && - (moduleKind === ModuleKind.CommonJS || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS); + getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS; if (node.expression.kind === SyntaxKind.Identifier) { const id = node.expression as Identifier; @@ -46732,8 +46762,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if ( moduleKind >= ModuleKind.ES2015 && moduleKind !== ModuleKind.Preserve && - ((node.flags & NodeFlags.Ambient && getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.ESNext) || - (!(node.flags & NodeFlags.Ambient) && getSourceFileOfNode(node).impliedNodeFormat !== ModuleKind.CommonJS)) + ((node.flags & NodeFlags.Ambient && impliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) === ModuleKind.ESNext) || + (!(node.flags & NodeFlags.Ambient) && impliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) !== ModuleKind.CommonJS)) ) { // export assignment is not supported in es6 modules grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); @@ -49427,7 +49457,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // ModuleDeclaration needs to be checked that it is uninstantiated later node.kind !== SyntaxKind.ModuleDeclaration && node.parent.kind === SyntaxKind.SourceFile && - (moduleKind === ModuleKind.CommonJS || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS) + getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS ) { return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } @@ -50586,7 +50616,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } if ( - (moduleKind < ModuleKind.ES2015 || getSourceFileOfNode(node).impliedNodeFormat === ModuleKind.CommonJS) && moduleKind !== ModuleKind.System && + getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System && !(node.parent.parent.flags & NodeFlags.Ambient) && hasSyntacticModifier(node.parent.parent, ModifierFlags.Export) ) { checkESModuleMarker(node.name); diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index dfbb41b3d409d..1c91e117c53f3 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -967,6 +967,10 @@ "category": "Error", "code": 1292 }, + "ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.": { + "category": "Error", + "code": 1293 + }, "'with' statements are not allowed in an async function block.": { "category": "Error", diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 15e1847f72ac3..a090d05fd9c44 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -130,6 +130,7 @@ import { getEmitFlags, getEmitHelpers, getEmitModuleKind, + getEmitModuleResolutionKind, getEmitScriptTarget, getExternalModuleName, getIdentifierTypeArguments, @@ -799,6 +800,7 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi newLine: compilerOptions.newLine, noEmitHelpers: compilerOptions.noEmitHelpers, module: getEmitModuleKind(compilerOptions), + moduleResolution: getEmitModuleResolutionKind(compilerOptions), target: getEmitScriptTarget(compilerOptions), sourceMap: compilerOptions.sourceMap, inlineSourceMap: compilerOptions.inlineSourceMap, @@ -866,6 +868,7 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi newLine: compilerOptions.newLine, noEmitHelpers: true, module: compilerOptions.module, + moduleResolution: compilerOptions.moduleResolution, target: compilerOptions.target, sourceMap: !forceDtsEmit && compilerOptions.declarationMap, inlineSourceMap: compilerOptions.inlineSourceMap, diff --git a/src/compiler/factory/utilities.ts b/src/compiler/factory/utilities.ts index 28c8769b4013c..7252ca7e3b9dd 100644 --- a/src/compiler/factory/utilities.ts +++ b/src/compiler/factory/utilities.ts @@ -53,6 +53,7 @@ import { getAllAccessorDeclarations, getEmitFlags, getEmitHelpers, + getEmitModuleFormatOfFile, getEmitModuleKind, getESModuleInterop, getExternalModuleName, @@ -71,6 +72,7 @@ import { HasIllegalTypeParameters, Identifier, idText, + impliedNodeFormatForEmit, ImportCall, ImportDeclaration, ImportEqualsDeclaration, @@ -712,7 +714,7 @@ export function createExternalHelpersImportDeclarationIfNeeded(nodeFactory: Node if (compilerOptions.importHelpers && isEffectiveExternalModule(sourceFile, compilerOptions)) { let namedBindings: NamedImportBindings | undefined; const moduleKind = getEmitModuleKind(compilerOptions); - if ((moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || sourceFile.impliedNodeFormat === ModuleKind.ESNext) { + if ((moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || impliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) { // use named imports const helpers = getEmitHelpers(sourceFile); if (helpers) { @@ -769,10 +771,8 @@ export function getOrCreateExternalHelpersModuleNameIfNeeded(factory: NodeFactor return externalHelpersModuleName; } - const moduleKind = getEmitModuleKind(compilerOptions); let create = (hasExportStarsToExportValues || (getESModuleInterop(compilerOptions) && hasImportStarOrImportDefault)) - && moduleKind !== ModuleKind.System - && (moduleKind < ModuleKind.ES2015 || node.impliedNodeFormat === ModuleKind.CommonJS); + && getEmitModuleFormatOfFile(node, compilerOptions) < ModuleKind.System; if (!create) { const helpers = getEmitHelpers(node); if (helpers) { diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index fb2a6cb1bb7f3..ee41a13e57c3b 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -35,6 +35,7 @@ import { getBaseFileName, GetCanonicalFileName, getConditions, + getDefaultResolutionModeForFile, getDirectoryPath, getEmitModuleResolutionKind, getModeForResolutionAtIndex, @@ -134,7 +135,7 @@ export interface ModuleSpecifierPreferences { /** * @param syntaxImpliedNodeFormat Used when the import syntax implies ESM or CJS irrespective of the mode of the file. */ - getAllowedEndingsInPreferredOrder(syntaxImpliedNodeFormat?: SourceFile["impliedNodeFormat"]): ModuleSpecifierEnding[]; + getAllowedEndingsInPreferredOrder(syntaxImpliedNodeFormat?: ResolutionMode): ModuleSpecifierEnding[]; } /** @internal */ @@ -154,8 +155,10 @@ export function getModuleSpecifierPreferences( importModuleSpecifierPreference === "project-relative" ? RelativePreference.ExternalNonRelative : RelativePreference.Shortest, getAllowedEndingsInPreferredOrder: syntaxImpliedNodeFormat => { - const preferredEnding = syntaxImpliedNodeFormat !== importingSourceFile.impliedNodeFormat ? getPreferredEnding(syntaxImpliedNodeFormat) : filePreferredEnding; - if ((syntaxImpliedNodeFormat ?? importingSourceFile.impliedNodeFormat) === ModuleKind.ESNext) { + const impliedNodeFormat = getDefaultResolutionModeForFile(importingSourceFile, compilerOptions); + const preferredEnding = syntaxImpliedNodeFormat !== impliedNodeFormat ? getPreferredEnding(syntaxImpliedNodeFormat) : filePreferredEnding; + const moduleResolution = getEmitModuleResolutionKind(compilerOptions); + if ((syntaxImpliedNodeFormat ?? impliedNodeFormat) === ModuleKind.ESNext && ModuleResolutionKind.Node16 <= moduleResolution && moduleResolution <= ModuleResolutionKind.NodeNext) { if (shouldAllowImportingTsExtension(compilerOptions, importingSourceFile.fileName)) { return [ModuleSpecifierEnding.TsExtension, ModuleSpecifierEnding.JsExtension]; } @@ -195,7 +198,7 @@ export function getModuleSpecifierPreferences( } return getModuleSpecifierEndingPreference( importModuleSpecifierEnding, - resolutionMode ?? importingSourceFile.impliedNodeFormat, + resolutionMode ?? getDefaultResolutionModeForFile(importingSourceFile, compilerOptions), compilerOptions, importingSourceFile, ); @@ -266,7 +269,7 @@ function getModuleSpecifierWorker( const info = getInfo(importingSourceFileName, host); const modulePaths = getAllModulePaths(info, toFileName, host, userPreferences, options); return firstDefined(modulePaths, modulePath => tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, /*packageNameOnly*/ undefined, options.overrideImportMode)) || - getLocalModuleSpecifier(toFileName, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences); + getLocalModuleSpecifier(toFileName, info, compilerOptions, host, options.overrideImportMode || getDefaultResolutionModeForFile(importingSourceFile, compilerOptions), preferences); } /** @internal */ @@ -388,7 +391,11 @@ function computeModuleSpecifiers( if (reason.kind !== FileIncludeKind.Import || reason.file !== importingSourceFile.path) return undefined; // If the candidate import mode doesn't match the mode we're generating for, don't consider it // TODO: maybe useful to keep around as an alternative option for certain contexts where the mode is overridable - if (importingSourceFile.impliedNodeFormat && importingSourceFile.impliedNodeFormat !== getModeForResolutionAtIndex(importingSourceFile, reason.index, compilerOptions)) return undefined; + const existingMode = getModeForResolutionAtIndex(importingSourceFile, reason.index, compilerOptions); + const targetMode = options.overrideImportMode ?? getDefaultResolutionModeForFile(importingSourceFile, compilerOptions); + if (existingMode !== targetMode && existingMode !== undefined && targetMode !== undefined) { + return undefined; + } const specifier = getModuleNameStringLiteralAt(importingSourceFile, reason.index).text; // If the preference is for non relative and the module specifier is relative, ignore it return preferences.relativePreference !== RelativePreference.NonRelative || !pathIsRelative(specifier) ? @@ -1078,7 +1085,7 @@ function tryGetModuleNameAsNodeModule({ path, isRedirect }: ModulePath, { getCan const cachedPackageJson = host.getPackageJsonInfoCache?.()?.getPackageJsonInfo(packageJsonPath); if (isPackageJsonInfo(cachedPackageJson) || cachedPackageJson === undefined && host.fileExists(packageJsonPath)) { const packageJsonContent: Record | undefined = cachedPackageJson?.contents.packageJsonContent || tryParseJson(host.readFile!(packageJsonPath)!); - const importMode = overrideMode || importingSourceFile.impliedNodeFormat; + const importMode = overrideMode || getDefaultResolutionModeForFile(importingSourceFile, options); if (getResolvePackageJsonExports(options)) { // The package name that we found in node_modules could be different from the package // name in the package.json content via url/filepath dependency specifiers. We need to diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 80ba1d4a5a23d..cca9f8a35da00 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -112,8 +112,10 @@ import { getCommonSourceDirectoryOfConfig, getDeclarationDiagnostics as ts_getDeclarationDiagnostics, getDefaultLibFileName, + getDefaultResolutionModeForFile, getDirectoryPath, getEmitDeclarations, + getEmitModuleFormatOfFile, getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, @@ -168,6 +170,7 @@ import { ImportClause, ImportDeclaration, ImportOrExportSpecifier, + importSyntaxAffectsModuleResolution, InternalEmitFlags, inverseJsxOptionMap, isAmbientModule, @@ -284,6 +287,7 @@ import { ScriptTarget, setParent, setParentRecursive, + shouldTransformImportCall, skipTrivia, skipTypeChecking, some, @@ -832,9 +836,11 @@ export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageCha * @internal */ export interface SourceFileImportsList { - /** @internal */ imports: SourceFile["imports"]; - /** @internal */ moduleAugmentations: SourceFile["moduleAugmentations"]; + imports: SourceFile["imports"]; + moduleAugmentations: SourceFile["moduleAugmentations"]; impliedNodeFormat?: ResolutionMode; + fileName: string; + packageJsonScope?: SourceFile["packageJsonScope"]; } /** @@ -880,22 +886,47 @@ export function isExclusivelyTypeOnlyImportOrExport(decl: ImportDeclaration | Ex /** * Use `program.getModeForUsageLocation`, which retrieves the correct `compilerOptions`, instead of this function whenever possible. - * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import - * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may - * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other - * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no - * impact on module resolution, emit, or type checking. + * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution + * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes, + * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of + * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript. + * Some examples: + * + * ```ts + * // tsc foo.mts --module nodenext + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension + * + * // tsc foo.cts --module nodenext + * import {} from "mod"; + * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension + * + * // tsc foo.ts --module preserve --moduleResolution bundler + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` + * // supports conditional imports/exports + * + * // tsc foo.ts --module preserve --moduleResolution node10 + * import {} from "mod"; + * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` + * // does not support conditional imports/exports + * + * // tsc foo.ts --module commonjs --moduleResolution node10 + * import type {} from "mod" with { "resolution-mode": "import" }; + * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute + * ``` + * * @param file The file the import or import-like reference is contained within * @param usage The module reference string * @param compilerOptions The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options * should be the options of the referenced project, not the referencing project. * @returns The final resolution mode of the import */ -export function getModeForUsageLocation(file: { impliedNodeFormat?: ResolutionMode; }, usage: StringLiteralLike, compilerOptions: CompilerOptions) { +export function getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike, compilerOptions: CompilerOptions) { return getModeForUsageLocationWorker(file, usage, compilerOptions); } -function getModeForUsageLocationWorker(file: { impliedNodeFormat?: ResolutionMode; }, usage: StringLiteralLike, compilerOptions?: CompilerOptions) { +function getModeForUsageLocationWorker(file: Pick, usage: StringLiteralLike, compilerOptions?: CompilerOptions) { if ((isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent))) { const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent); if (isTypeOnly) { @@ -911,20 +942,36 @@ function getModeForUsageLocationWorker(file: { impliedNodeFormat?: ResolutionMod return override; } } - if (compilerOptions && getEmitModuleKind(compilerOptions) === ModuleKind.Preserve) { - return (usage.parent.parent && isImportEqualsDeclaration(usage.parent.parent) || isRequireCall(usage.parent, /*requireStringLiteralLikeArgument*/ false)) - ? ModuleKind.CommonJS - : ModuleKind.ESNext; + + if (compilerOptions && importSyntaxAffectsModuleResolution(compilerOptions)) { + return getEmitSyntaxForUsageLocationWorker(file, usage, compilerOptions); } - if (file.impliedNodeFormat === undefined) return undefined; - if (file.impliedNodeFormat !== ModuleKind.ESNext) { - // in cjs files, import call expressions are esm format, otherwise everything is cjs - return isImportCall(walkUpParenthesizedExpressions(usage.parent)) ? ModuleKind.ESNext : ModuleKind.CommonJS; +} + +function getEmitSyntaxForUsageLocationWorker(file: Pick, usage: StringLiteralLike, compilerOptions?: CompilerOptions): ResolutionMode { + if (!compilerOptions) { + // This should always be provided, but we try to fail somewhat + // gracefully to allow projects like ts-node time to update. + return undefined; } - // in esm files, import=require statements are cjs format, otherwise everything is esm - // imports are only parent'd up to their containing declaration/expression, so access farther parents with care const exprParentParent = walkUpParenthesizedExpressions(usage.parent)?.parent; - return exprParentParent && isImportEqualsDeclaration(exprParentParent) ? ModuleKind.CommonJS : ModuleKind.ESNext; + if (exprParentParent && isImportEqualsDeclaration(exprParentParent) || isRequireCall(usage.parent, /*requireStringLiteralLikeArgument*/ false)) { + return ModuleKind.CommonJS; + } + if (isImportCall(walkUpParenthesizedExpressions(usage.parent))) { + return shouldTransformImportCall(file, compilerOptions) ? ModuleKind.CommonJS : ModuleKind.ESNext; + } + // If we're in --module preserve on an input file, we know that an import + // is an import. But if this is a declaration file, we'd prefer to use the + // impliedNodeFormat. Since we want things to be consistent between the two, + // we need to issue errors when the user writes ESM syntax in a definitely-CJS + // file, until/unless declaration emit can indicate a true ESM import. On the + // other hand, writing CJS syntax in a definitely-ESM file is fine, since declaration + // emit preserves the CJS syntax. + const fileEmitMode = getEmitModuleFormatOfFile(file, compilerOptions); + return fileEmitMode === ModuleKind.CommonJS ? ModuleKind.CommonJS : + emitModuleKindIsNonNodeESM(fileEmitMode) || fileEmitMode === ModuleKind.Preserve ? ModuleKind.ESNext : + undefined; } /** @internal */ @@ -1015,7 +1062,7 @@ function getTypeReferenceResolutionName(entry: const typeReferenceResolutionNameAndModeGetter: ResolutionNameAndModeGetter = { getName: getTypeReferenceResolutionName, - getMode: (entry, file) => getModeForFileReference(entry, file?.impliedNodeFormat), + getMode: (entry, file, compilerOptions) => getModeForFileReference(entry, file && getDefaultResolutionModeForFile(file, compilerOptions)), }; /** @internal */ @@ -1337,16 +1384,11 @@ export function getImpliedNodeFormatForFileWorker( host: ModuleResolutionHost, options: CompilerOptions, ) { - switch (getEmitModuleResolutionKind(options)) { - case ModuleResolutionKind.Node16: - case ModuleResolutionKind.NodeNext: - return fileExtensionIsOneOf(fileName, [Extension.Dmts, Extension.Mts, Extension.Mjs]) ? ModuleKind.ESNext : - fileExtensionIsOneOf(fileName, [Extension.Dcts, Extension.Cts, Extension.Cjs]) ? ModuleKind.CommonJS : - fileExtensionIsOneOf(fileName, [Extension.Dts, Extension.Ts, Extension.Tsx, Extension.Js, Extension.Jsx]) ? lookupFromPackageJson() : - undefined; // other extensions, like `json` or `tsbuildinfo`, are set as `undefined` here but they should never be fed through the transformer pipeline - default: - return undefined; - } + return fileExtensionIsOneOf(fileName, [Extension.Dmts, Extension.Mts, Extension.Mjs]) ? ModuleKind.ESNext : + fileExtensionIsOneOf(fileName, [Extension.Dcts, Extension.Cts, Extension.Cjs]) ? ModuleKind.CommonJS : + fileExtensionIsOneOf(fileName, [Extension.Dts, Extension.Ts, Extension.Tsx, Extension.Js, Extension.Jsx]) ? lookupFromPackageJson() : + undefined; // other extensions, like `json` or `tsbuildinfo`, are set as `undefined` here but they should never be fed through the transformer pipeline + function lookupFromPackageJson(): Partial { const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options); const packageJsonLocations: string[] = []; @@ -1897,6 +1939,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg isSourceFileFromExternalLibrary, isSourceFileDefaultLibrary, getModeForUsageLocation, + getEmitSyntaxForUsageLocation, getModeForResolutionAtIndex, getSourceFileFromReference, getLibFileFromReference, @@ -3854,6 +3897,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg const resolutions = resolvedTypeReferenceDirectiveNamesProcessing?.get(file.path) || resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectives, file); const resolutionsInFile = createModeAwareCache(); + const optionsForFile = getRedirectReferenceForResolution(file)?.commandLine.options || options; (resolvedTypeReferenceDirectiveNames ??= new Map()).set(file.path, resolutionsInFile); for (let index = 0; index < typeDirectives.length; index++) { const ref = file.typeReferenceDirectives[index]; @@ -3861,7 +3905,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg // store resolved type directive on the file const fileName = toFileNameLowerCase(ref.fileName); resolutionsInFile.set(fileName, getModeForFileReference(ref, file.impliedNodeFormat), resolvedTypeReferenceDirective); - const mode = ref.resolutionMode || file.impliedNodeFormat; + const mode = ref.resolutionMode || getDefaultResolutionModeForFile(file, optionsForFile); processTypeReferenceDirective(fileName, mode, resolvedTypeReferenceDirective, { kind: FileIncludeKind.TypeReferenceDirective, file: file.path, index }); } } @@ -4594,7 +4638,8 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg if (locationReason && fileIncludeReasons?.length === 1) fileIncludeReasons = undefined; const location = locationReason && getReferencedFileLocation(program, locationReason); const fileIncludeReasonDetails = fileIncludeReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon); - const redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file); + const optionsForFile = file && getRedirectReferenceForResolution(file)?.commandLine.options || options; + const redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, optionsForFile); const chain = chainDiagnosticMessages(redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, diagnostic, ...args || emptyArray); return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : @@ -4928,6 +4973,11 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg return getModeForUsageLocationWorker(file, usage, optionsForFile); } + function getEmitSyntaxForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode { + const optionsForFile = getRedirectReferenceForResolution(file)?.commandLine.options || options; + return getEmitSyntaxForUsageLocationWorker(file, usage, optionsForFile); + } + function getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode { return getModeForUsageLocation(file, getModuleNameStringLiteralAt(file, index)); } diff --git a/src/compiler/transformer.ts b/src/compiler/transformer.ts index f6428efe68b24..607cf01e63deb 100644 --- a/src/compiler/transformer.ts +++ b/src/compiler/transformer.ts @@ -65,10 +65,10 @@ import { transformESDecorators, transformESNext, transformGenerators, + transformImpliedNodeFormatDependentModule, transformJsx, transformLegacyDecorators, transformModule, - transformNodeModule, transformSystemModule, transformTypeScript, VariableDeclaration, @@ -77,17 +77,23 @@ import * as performance from "./_namespaces/ts.performance"; function getModuleTransformer(moduleKind: ModuleKind): TransformerFactory { switch (moduleKind) { + case ModuleKind.Preserve: + // `transformECMAScriptModule` contains logic for preserving + // CJS input syntax in `--module preserve` + return transformECMAScriptModule; case ModuleKind.ESNext: case ModuleKind.ES2022: case ModuleKind.ES2020: case ModuleKind.ES2015: - case ModuleKind.Preserve: - return transformECMAScriptModule; - case ModuleKind.System: - return transformSystemModule; case ModuleKind.Node16: case ModuleKind.NodeNext: - return transformNodeModule; + case ModuleKind.CommonJS: + // Wraps `transformModule` and `transformECMAScriptModule` and + // selects between them based on the `impliedNodeFormat` of the + // source file. + return transformImpliedNodeFormatDependentModule; + case ModuleKind.System: + return transformSystemModule; default: return transformModule; } diff --git a/src/compiler/transformers/module/node.ts b/src/compiler/transformers/module/impliedNodeFormatDependent.ts similarity index 83% rename from src/compiler/transformers/module/node.ts rename to src/compiler/transformers/module/impliedNodeFormatDependent.ts index 920573dba76cd..c9acfa2bb3a94 100644 --- a/src/compiler/transformers/module/node.ts +++ b/src/compiler/transformers/module/impliedNodeFormatDependent.ts @@ -2,6 +2,7 @@ import { Bundle, Debug, EmitHint, + getEmitModuleFormatOfFile, isSourceFile, map, ModuleKind, @@ -14,7 +15,7 @@ import { } from "../../_namespaces/ts"; /** @internal */ -export function transformNodeModule(context: TransformationContext) { +export function transformImpliedNodeFormatDependentModule(context: TransformationContext) { const previousOnSubstituteNode = context.onSubstituteNode; const previousOnEmitNode = context.onEmitNode; @@ -30,6 +31,7 @@ export function transformNodeModule(context: TransformationContext) { const cjsOnSubstituteNode = context.onSubstituteNode; const cjsOnEmitNode = context.onEmitNode; + const compilerOptions = context.getEmitHost().getCompilerOptions(); context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; @@ -51,7 +53,7 @@ export function transformNodeModule(context: TransformationContext) { if (!currentSourceFile) { return previousOnSubstituteNode(hint, node); } - if (currentSourceFile.impliedNodeFormat === ModuleKind.ESNext) { + if (getEmitModuleFormatOfFile(currentSourceFile, compilerOptions) >= ModuleKind.ES2015) { return esmOnSubstituteNode(hint, node); } return cjsOnSubstituteNode(hint, node); @@ -65,14 +67,14 @@ export function transformNodeModule(context: TransformationContext) { if (!currentSourceFile) { return previousOnEmitNode(hint, node, emitCallback); } - if (currentSourceFile.impliedNodeFormat === ModuleKind.ESNext) { + if (getEmitModuleFormatOfFile(currentSourceFile, compilerOptions) >= ModuleKind.ES2015) { return esmOnEmitNode(hint, node, emitCallback); } return cjsOnEmitNode(hint, node, emitCallback); } function getModuleTransformForFile(file: SourceFile): typeof esmTransform { - return file.impliedNodeFormat === ModuleKind.ESNext ? esmTransform : cjsTransform; + return getEmitModuleFormatOfFile(file, compilerOptions) >= ModuleKind.ES2015 ? esmTransform : cjsTransform; } function transformSourceFile(node: SourceFile) { diff --git a/src/compiler/transformers/module/module.ts b/src/compiler/transformers/module/module.ts index f73acdbe35bc9..ea2744b19494d 100644 --- a/src/compiler/transformers/module/module.ts +++ b/src/compiler/transformers/module/module.ts @@ -137,6 +137,7 @@ import { setOriginalNode, setTextRange, ShorthandPropertyAssignment, + shouldTransformImportCall, singleOrMany, some, SourceFile, @@ -785,7 +786,7 @@ export function transformModule(context: TransformationContext): (x: SourceFile case SyntaxKind.PartiallyEmittedExpression: return visitPartiallyEmittedExpression(node as PartiallyEmittedExpression, valueIsDiscarded); case SyntaxKind.CallExpression: - if (isImportCall(node) && currentSourceFile.impliedNodeFormat === undefined) { + if (isImportCall(node) && shouldTransformImportCall(currentSourceFile, compilerOptions)) { return visitImportCallExpression(node); } break; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index ce6064fbdc409..526702ac0c228 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4664,19 +4664,67 @@ export interface Program extends ScriptReferenceHost { isSourceFileFromExternalLibrary(file: SourceFile): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; /** - * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import - * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may - * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other - * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no - * impact on module resolution, emit, or type checking. + * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution + * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes, + * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of + * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript. + * Some examples: + * + * ```ts + * // tsc foo.mts --module nodenext + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension + * + * // tsc foo.cts --module nodenext + * import {} from "mod"; + * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension + * + * // tsc foo.ts --module preserve --moduleResolution bundler + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` + * // supports conditional imports/exports + * + * // tsc foo.ts --module preserve --moduleResolution node10 + * import {} from "mod"; + * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` + * // does not support conditional imports/exports + * + * // tsc foo.ts --module commonjs --moduleResolution node10 + * import type {} from "mod" with { "resolution-mode": "import" }; + * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute + * ``` */ getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode; /** - * Calculates the final resolution mode for an import at some index within a file's `imports` list. This is the resolution mode - * explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In - * `--module node16` or `nodenext`, this may depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the - * input syntax of the reference. In other `module` modes, when overriding import attributes are not provided, this function returns - * `undefined`, as the result would have no impact on module resolution, emit, or type checking. + * Calculates the final resolution mode for an import at some index within a file's `imports` list. This function only returns a result + * when module resolution settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided + * via import attributes, which cause an `import` or `require` condition to be used during resolution regardless of module resolution + * settings. In absence of overriding attributes, and in modes that support differing resolution, the result indicates the syntax the + * usage would emit to JavaScript. Some examples: + * + * ```ts + * // tsc foo.mts --module nodenext + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension + * + * // tsc foo.cts --module nodenext + * import {} from "mod"; + * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension + * + * // tsc foo.ts --module preserve --moduleResolution bundler + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` + * // supports conditional imports/exports + * + * // tsc foo.ts --module preserve --moduleResolution node10 + * import {} from "mod"; + * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` + * // does not support conditional imports/exports + * + * // tsc foo.ts --module commonjs --moduleResolution node10 + * import type {} from "mod" with { "resolution-mode": "import" }; + * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute + * ``` */ getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode; @@ -4843,6 +4891,7 @@ export interface TypeCheckerHost extends ModuleSpecifierResolutionHost { getSourceFile(fileName: string): SourceFile | undefined; getProjectReferenceRedirect(fileName: string): string | undefined; isSourceOfProjectReferenceRedirect(fileName: string): boolean; + getEmitSyntaxForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode; getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode; getResolvedModule(f: SourceFile, moduleName: string, mode: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined; @@ -5494,6 +5543,9 @@ export interface RequireVariableDeclarationList extends VariableDeclarationList readonly declarations: NodeArray>; } +/** @internal */ +export type CanHaveModuleSpecifier = AnyImportOrBareOrAccessedRequire | AliasDeclarationNode | ExportDeclaration | ImportTypeNode; + /** @internal */ export type LateVisibilityPaintedStatement = | AnyImportSyntax @@ -9411,6 +9463,7 @@ export interface PrinterOptions { omitTrailingSemicolon?: boolean; noEmitHelpers?: boolean; /** @internal */ module?: CompilerOptions["module"]; + /** @internal */ moduleResolution?: CompilerOptions["moduleResolution"]; /** @internal */ target?: CompilerOptions["target"]; /** @internal */ sourceMap?: boolean; /** @internal */ inlineSourceMap?: boolean; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 184f68b0c6221..9be1557b6646b 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -5,7 +5,6 @@ import { addRange, affectsDeclarationPathOptionDeclarations, affectsEmitOptionDeclarations, - AliasDeclarationNode, AllAccessorDeclarations, AmbientModuleDeclaration, AmpersandAmpersandEqualsToken, @@ -39,6 +38,7 @@ import { CallSignatureDeclaration, canHaveDecorators, canHaveModifiers, + type CanHaveModuleSpecifier, CaseBlock, CaseClause, CaseOrDefaultClause, @@ -3981,7 +3981,26 @@ export function isFunctionSymbol(symbol: Symbol | undefined) { } /** @internal */ -export function tryGetModuleSpecifierFromDeclaration(node: AnyImportOrBareOrAccessedRequire | AliasDeclarationNode | ExportDeclaration | ImportTypeNode): StringLiteralLike | undefined { +export function canHaveModuleSpecifier(node: Node | undefined): node is CanHaveModuleSpecifier { + switch (node?.kind) { + case SyntaxKind.VariableDeclaration: + case SyntaxKind.BindingElement: + case SyntaxKind.ImportDeclaration: + case SyntaxKind.ExportDeclaration: + case SyntaxKind.ImportEqualsDeclaration: + case SyntaxKind.ImportClause: + case SyntaxKind.NamespaceExport: + case SyntaxKind.NamespaceImport: + case SyntaxKind.ExportSpecifier: + case SyntaxKind.ImportSpecifier: + case SyntaxKind.ImportType: + return true; + } + return false; +} + +/** @internal */ +export function tryGetModuleSpecifierFromDeclaration(node: CanHaveModuleSpecifier): StringLiteralLike | undefined { switch (node.kind) { case SyntaxKind.VariableDeclaration: case SyntaxKind.BindingElement: @@ -8543,11 +8562,13 @@ function isFileModuleFromUsingJSXTag(file: SourceFile): Node | undefined { * Note that this requires file.impliedNodeFormat be set already; meaning it must be set very early on * in SourceFile construction. */ -function isFileForcedToBeModuleByFormat(file: SourceFile): true | undefined { +function isFileForcedToBeModuleByFormat(file: SourceFile, options: CompilerOptions): true | undefined { // Excludes declaration files - they still require an explicit `export {}` or the like // for back compat purposes. The only non-declaration files _not_ forced to be a module are `.js` files // that aren't esm-mode (meaning not in a `type: module` scope). - return (file.impliedNodeFormat === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts, Extension.Mjs, Extension.Mts]))) && !file.isDeclarationFile ? true : undefined; + // + // TODO: extension check never considered compilerOptions; should impliedNodeFormat? + return (impliedNodeFormatForEmit(file, options) === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts, Extension.Mjs, Extension.Mts]))) && !file.isDeclarationFile ? true : undefined; } /** @internal */ @@ -8568,17 +8589,76 @@ export function getSetExternalModuleIndicator(options: CompilerOptions): (file: // If module is nodenext or node16, all esm format files are modules // If jsx is react-jsx or react-jsxdev then jsx tags force module-ness // otherwise, the presence of import or export statments (or import.meta) implies module-ness - const checks: ((file: SourceFile) => Node | true | undefined)[] = [isFileProbablyExternalModule]; + const checks: ((file: SourceFile, options: CompilerOptions) => Node | true | undefined)[] = [isFileProbablyExternalModule]; if (options.jsx === JsxEmit.ReactJSX || options.jsx === JsxEmit.ReactJSXDev) { checks.push(isFileModuleFromUsingJSXTag); } checks.push(isFileForcedToBeModuleByFormat); const combined = or(...checks); - const callback = (file: SourceFile) => void (file.externalModuleIndicator = combined(file)); + const callback = (file: SourceFile) => void (file.externalModuleIndicator = combined(file, options)); return callback; } } +/** + * @internal + * Returns true if an `import` and a `require` of the same module specifier + * can resolve to a different file. + */ +export function importSyntaxAffectsModuleResolution(options: CompilerOptions) { + const moduleResolution = getEmitModuleResolutionKind(options); + return ModuleResolutionKind.Node16 <= moduleResolution && moduleResolution <= ModuleResolutionKind.NodeNext + || getResolvePackageJsonExports(options) + || getResolvePackageJsonImports(options); +} + +/** + * @internal + * The resolution mode to use for module resolution or module specifier resolution + * outside the context of an existing module reference, where + * `program.getModeForUsageLocation` should be used instead. + */ +export function getDefaultResolutionModeForFile(sourceFile: Pick, options: CompilerOptions): ResolutionMode { + return importSyntaxAffectsModuleResolution(options) ? impliedNodeFormatForEmit(sourceFile, options) : undefined; +} + +/** @internal */ +export function impliedNodeFormatForEmit(sourceFile: Pick, options: CompilerOptions): ResolutionMode { + const moduleKind = getEmitModuleKind(options); + if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { + return sourceFile.impliedNodeFormat; + } + if ( + sourceFile.impliedNodeFormat === ModuleKind.CommonJS + && (sourceFile.packageJsonScope?.contents.packageJsonContent.type === "commonjs" + || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cjs, Extension.Cts])) + ) { + return ModuleKind.CommonJS; + } + if ( + sourceFile.impliedNodeFormat === ModuleKind.ESNext + && (sourceFile.packageJsonScope?.contents.packageJsonContent.type === "module" + || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Mjs, Extension.Mts])) + ) { + return ModuleKind.ESNext; + } + return undefined; +} + +/** @internal */ +export function shouldTransformImportCall(sourceFile: Pick, options: CompilerOptions): boolean { + const moduleKind = getEmitModuleKind(options); + if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext || moduleKind === ModuleKind.Preserve) { + return false; + } + return getEmitModuleFormatOfFile(sourceFile, options) < ModuleKind.ES2015; +} + +/** @internal */ +export function getEmitModuleFormatOfFile(sourceFile: Pick, options: CompilerOptions): ModuleKind { + return impliedNodeFormatForEmit(sourceFile, options) ?? getEmitModuleKind(options); +} + type CompilerOptionKeys = keyof { [K in keyof CompilerOptions as string extends K ? never : K]: any; }; function createComputedCompilerOptions>( options: { diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 2e89d636e0c71..0eda1de311ac8 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -66,6 +66,7 @@ import { getRelativePathFromDirectory, getWatchFactory, HasCurrentDirectory, + impliedNodeFormatForEmit, isExternalOrCommonJsModule, isLineBreak, isReferencedFile, @@ -352,13 +353,14 @@ export function explainFiles(program: Program, write: (s: string) => void) { for (const file of program.getSourceFiles()) { write(`${toFileName(file, relativeFileName)}`); reasons.get(file.path)?.forEach(reason => write(` ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`)); - explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)?.forEach(d => write(` ${d.messageText}`)); + explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptions(), relativeFileName)?.forEach(d => write(` ${d.messageText}`)); } } /** @internal */ export function explainIfFileIsRedirectAndImpliedFormat( file: SourceFile, + options: CompilerOptions, fileNameConvertor?: (fileName: string) => string, ): DiagnosticMessageChain[] | undefined { let result: DiagnosticMessageChain[] | undefined; @@ -377,7 +379,7 @@ export function explainIfFileIsRedirectAndImpliedFormat( )); } if (isExternalOrCommonJsModule(file)) { - switch (file.impliedNodeFormat) { + switch (impliedNodeFormatForEmit(file, options)) { case ModuleKind.ESNext: if (file.packageJsonScope) { (result ??= []).push(chainDiagnosticMessages( diff --git a/src/services/codefixes/importFixes.ts b/src/services/codefixes/importFixes.ts index 80400b140438e..03e45d5e83a24 100644 --- a/src/services/codefixes/importFixes.ts +++ b/src/services/codefixes/importFixes.ts @@ -38,6 +38,7 @@ import { getDefaultExportInfoWorker, getDefaultLikeExportInfo, getDirectoryPath, + getEmitModuleFormatOfFile, getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, @@ -57,6 +58,7 @@ import { getUniqueSymbolId, hostGetCanonicalFileName, Identifier, + impliedNodeFormatForEmit, ImportClause, ImportEqualsDeclaration, importFromModuleSpecifier, @@ -844,8 +846,9 @@ function shouldUseRequire(sourceFile: SourceFile, program: Program): boolean { // 4. In --module nodenext, assume we're not emitting JS -> JS, so use // whatever syntax Node expects based on the detected module kind - if (sourceFile.impliedNodeFormat === ModuleKind.CommonJS) return true; - if (sourceFile.impliedNodeFormat === ModuleKind.ESNext) return false; + // TODO: consider removing `impliedNodeFormatForEmit` + if (impliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.CommonJS) return true; + if (impliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) return false; // 5. Match the first other JS file in the program that's unambiguously CJS or ESM for (const otherFile of program.getSourceFiles()) { @@ -1110,7 +1113,7 @@ function getUmdSymbol(token: Node, checker: TypeChecker): Symbol | undefined { * @internal */ export function getImportKind(importingFile: SourceFile, exportKind: ExportKind, compilerOptions: CompilerOptions, forceImportKeyword?: boolean): ImportKind { - if (compilerOptions.verbatimModuleSyntax && (getEmitModuleKind(compilerOptions) === ModuleKind.CommonJS || importingFile.impliedNodeFormat === ModuleKind.CommonJS)) { + if (compilerOptions.verbatimModuleSyntax && getEmitModuleFormatOfFile(importingFile, compilerOptions) === ModuleKind.CommonJS) { // TODO: if the exporting file is ESM under nodenext, or `forceImport` is given in a JS file, this is impossible return ImportKind.CommonJS; } @@ -1155,7 +1158,7 @@ function getUmdImportKind(importingFile: SourceFile, compilerOptions: CompilerOp return ImportKind.Namespace; case ModuleKind.Node16: case ModuleKind.NodeNext: - return importingFile.impliedNodeFormat === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.CommonJS; + return impliedNodeFormatForEmit(importingFile, compilerOptions) === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.CommonJS; default: return Debug.assertNever(moduleKind, `Unexpected moduleKind ${moduleKind}`); } diff --git a/src/services/completions.ts b/src/services/completions.ts index 6ebdefce12490..3069cf6894b03 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -1157,11 +1157,13 @@ function getJSDocParamAnnotation( ? createSnippetPrinter({ removeComments: true, module: options.module, + moduleResolution: options.moduleResolution, target: options.target, }) : createPrinter({ removeComments: true, module: options.module, + moduleResolution: options.moduleResolution, target: options.target, }); setEmitFlags(typeNode, EmitFlags.SingleLine); @@ -1455,6 +1457,7 @@ function getExhaustiveCaseSnippets( const printer = createSnippetPrinter({ removeComments: true, module: options.module, + moduleResolution: options.moduleResolution, target: options.target, newLine: getNewLineKind(newLineChar), }); @@ -1942,6 +1945,7 @@ function getEntryForMemberCompletion( const printer = createSnippetPrinter({ removeComments: true, module: options.module, + moduleResolution: options.moduleResolution, target: options.target, omitTrailingSemicolon: false, newLine: getNewLineKind(getNewLineOrDefaultFromHost(host, formatContext?.options)), @@ -2168,6 +2172,7 @@ function getEntryForObjectLiteralMethodCompletion( const printer = createSnippetPrinter({ removeComments: true, module: options.module, + moduleResolution: options.moduleResolution, target: options.target, omitTrailingSemicolon: false, newLine: getNewLineKind(getNewLineOrDefaultFromHost(host, formatContext?.options)), @@ -2182,6 +2187,7 @@ function getEntryForObjectLiteralMethodCompletion( const signaturePrinter = createPrinter({ removeComments: true, module: options.module, + moduleResolution: options.moduleResolution, target: options.target, omitTrailingSemicolon: true, }); diff --git a/src/services/goToDefinition.ts b/src/services/goToDefinition.ts index d3148d5ae60f5..87f691e9ec84a 100644 --- a/src/services/goToDefinition.ts +++ b/src/services/goToDefinition.ts @@ -26,6 +26,7 @@ import { FunctionLikeDeclaration, getAssignmentDeclarationKind, getContainingObjectLiteralElement, + getDefaultResolutionModeForFile, getDirectoryPath, getEffectiveBaseTypeNode, getInvokedExpression, @@ -344,7 +345,7 @@ export function getReferenceAtPosition(sourceFile: SourceFile, position: number, const typeReferenceDirective = findReferenceInPosition(sourceFile.typeReferenceDirectives, position); if (typeReferenceDirective) { - const reference = program.getResolvedTypeReferenceDirectives().get(typeReferenceDirective.fileName, typeReferenceDirective.resolutionMode || sourceFile.impliedNodeFormat)?.resolvedTypeReferenceDirective; + const reference = program.getResolvedTypeReferenceDirectives().get(typeReferenceDirective.fileName, typeReferenceDirective.resolutionMode || getDefaultResolutionModeForFile(sourceFile, program.getCompilerOptions()))?.resolvedTypeReferenceDirective; const file = reference && program.getSourceFile(reference.resolvedFileName!); // TODO:GH#18217 return file && { reference: typeReferenceDirective, fileName: file.fileName, file, unverified: false }; } diff --git a/src/services/importTracker.ts b/src/services/importTracker.ts index b0e7215625e12..b38ab47563440 100644 --- a/src/services/importTracker.ts +++ b/src/services/importTracker.ts @@ -16,6 +16,7 @@ import { findAncestor, forEach, getAssignmentDeclarationKind, + getDefaultResolutionModeForFile, getFirstIdentifier, getNameOfAccessExpression, getSourceFileOfNode, @@ -468,6 +469,7 @@ export type ModuleReference = export function findModuleReferences(program: Program, sourceFiles: readonly SourceFile[], searchModuleSymbol: Symbol): ModuleReference[] { const refs: ModuleReference[] = []; const checker = program.getTypeChecker(); + const compilerOptions = program.getCompilerOptions(); for (const referencingFile of sourceFiles) { const searchSourceFile = searchModuleSymbol.valueDeclaration; if (searchSourceFile?.kind === SyntaxKind.SourceFile) { @@ -477,7 +479,7 @@ export function findModuleReferences(program: Program, sourceFiles: readonly Sou } } for (const ref of referencingFile.typeReferenceDirectives) { - const referenced = program.getResolvedTypeReferenceDirectives().get(ref.fileName, ref.resolutionMode || referencingFile.impliedNodeFormat)?.resolvedTypeReferenceDirective; + const referenced = program.getResolvedTypeReferenceDirectives().get(ref.fileName, ref.resolutionMode || getDefaultResolutionModeForFile(referencingFile, compilerOptions))?.resolvedTypeReferenceDirective; if (referenced !== undefined && referenced.resolvedFileName === (searchSourceFile as SourceFile).fileName) { refs.push({ kind: "reference", referencingFile, ref }); } diff --git a/src/services/suggestionDiagnostics.ts b/src/services/suggestionDiagnostics.ts index cc597320d58ad..ed60f9cd2115b 100644 --- a/src/services/suggestionDiagnostics.ts +++ b/src/services/suggestionDiagnostics.ts @@ -26,6 +26,7 @@ import { hasInitializer, hasPropertyAccessExpressionWithName, Identifier, + impliedNodeFormatForEmit, importFromModuleSpecifier, isAsyncFunction, isBinaryExpression, @@ -66,7 +67,7 @@ export function computeSuggestionDiagnostics(sourceFile: SourceFile, program: Pr program.getSemanticDiagnostics(sourceFile, cancellationToken); const diags: DiagnosticWithLocation[] = []; const checker = program.getTypeChecker(); - const isCommonJSFile = sourceFile.impliedNodeFormat === ModuleKind.CommonJS || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cts, Extension.Cjs]); + const isCommonJSFile = impliedNodeFormatForEmit(sourceFile, program.getCompilerOptions()) === ModuleKind.CommonJS || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cts, Extension.Cjs]); if ( !isCommonJSFile && diff --git a/src/services/utilities.ts b/src/services/utilities.ts index cfc9c629837d4..2bb89b3172dbf 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -124,6 +124,7 @@ import { identity, idText, IfStatement, + impliedNodeFormatForEmit, ImportClause, ImportDeclaration, ImportSpecifier, @@ -4244,9 +4245,11 @@ export function fileShouldUseJavaScriptRequire(file: SourceFile | string, progra } const compilerOptions = program.getCompilerOptions(); const moduleKind = getEmitModuleKind(compilerOptions); - const impliedNodeFormat = typeof file === "string" - ? getImpliedNodeFormatForFile(toPath(file, host.getCurrentDirectory(), hostGetCanonicalFileName(host)), program.getPackageJsonInfoCache?.(), host, compilerOptions) - : file.impliedNodeFormat; + const sourceFileLike = typeof file === "string" ? { + fileName: file, + impliedNodeFormat: getImpliedNodeFormatForFile(toPath(file, host.getCurrentDirectory(), hostGetCanonicalFileName(host)), program.getPackageJsonInfoCache?.(), host, compilerOptions), + } : file; + const impliedNodeFormat = impliedNodeFormatForEmit(sourceFileLike, compilerOptions); if (impliedNodeFormat === ModuleKind.ESNext) { return false; diff --git a/src/testRunner/unittests/tsc/projectReferences.ts b/src/testRunner/unittests/tsc/projectReferences.ts index 8a0a9394e7316..728ea9bf82a10 100644 --- a/src/testRunner/unittests/tsc/projectReferences.ts +++ b/src/testRunner/unittests/tsc/projectReferences.ts @@ -49,4 +49,49 @@ describe("unittests:: tsc:: projectReferences::", () => { }), commandLineArgs: ["--p", "src/project"], }); + + verifyTsc({ + scenario: "projectReferences", + subScenario: "default import interop uses referenced project settings", + fs: () => + loadProjectFromFiles({ + "/node_modules/ambiguous-package/package.json": `{ "name": "ambiguous-package" }`, + "/node_modules/ambiguous-package/index.d.ts": "export declare const ambiguous: number;", + "/node_modules/esm-package/package.json": `{ "name": "esm-package", "type": "module" }`, + "/node_modules/esm-package/index.d.ts": "export declare const esm: number;", + "/lib/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + rootDir: "src", + outDir: "dist", + module: "esnext", + moduleResolution: "bundler", + }, + include: ["src"], + }), + "/lib/src/a.ts": "export const a = 0;", + "/lib/dist/a.d.ts": "export declare const a = 0;", + "/app/tsconfig.json": jsonToReadableText({ + compilerOptions: { + module: "esnext", + moduleResolution: "bundler", + rootDir: "src", + outDir: "dist", + }, + include: ["src"], + references: [ + { path: "../lib" }, + ], + }), + "/app/src/local.ts": "export const local = 0;", + "/app/src/index.ts": ` + import local from "./local"; // Error + import esm from "esm-package"; // Error + import referencedSource from "../../lib/src/a"; // Error + import referencedDeclaration from "../../lib/dist/a"; // Error + import ambiguous from "ambiguous-package"; // Ok`, + }), + commandLineArgs: ["--p", "app", "--pretty", "false"], + }); }); diff --git a/src/testRunner/unittests/tscWatch/incremental.ts b/src/testRunner/unittests/tscWatch/incremental.ts index 353eeabb0079d..6c101d5f3385e 100644 --- a/src/testRunner/unittests/tscWatch/incremental.ts +++ b/src/testRunner/unittests/tscWatch/incremental.ts @@ -184,19 +184,19 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { version: system.createHash(libFile.content), signature: system.createHash(libFile.content), affectsGlobalScope: true, - impliedFormat: undefined, + impliedFormat: ts.ModuleKind.CommonJS, }); assert.deepEqual(state.fileInfos.get(file1.path as ts.Path), { version: system.createHash(file1.content), signature: system.createHash(file1.content), affectsGlobalScope: undefined, - impliedFormat: undefined, + impliedFormat: ts.ModuleKind.CommonJS, }); assert.deepEqual(state.fileInfos.get(file2.path as ts.Path), { version: system.createHash(fileModified.content), signature: system.createHash(fileModified.content), affectsGlobalScope: undefined, - impliedFormat: undefined, + impliedFormat: ts.ModuleKind.CommonJS, }); assert.deepEqual(state.compilerOptions, { From 09330b8d4c663035a1a5ceb350f4dc7a43548b43 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 21 Mar 2024 11:41:50 -0700 Subject: [PATCH 02/12] Add new tests --- ...nthesizedDefault(module=esnext).errors.txt | 23 +++ .../esmNoSynthesizedDefault(module=esnext).js | 25 +++ ...oSynthesizedDefault(module=esnext).symbols | 29 +++ ...mNoSynthesizedDefault(module=esnext).types | 37 ++++ ...hesizedDefault(module=preserve).errors.txt | 23 +++ ...smNoSynthesizedDefault(module=preserve).js | 25 +++ ...ynthesizedDefault(module=preserve).symbols | 29 +++ ...oSynthesizedDefault(module=preserve).types | 37 ++++ ...liedNodeFormatEmit1(module=amd).errors.txt | 37 ++++ .../impliedNodeFormatEmit1(module=amd).js | 98 ++++++++++ ...odeFormatEmit1(module=commonjs).errors.txt | 37 ++++ ...impliedNodeFormatEmit1(module=commonjs).js | 68 +++++++ ...dNodeFormatEmit1(module=esnext).errors.txt | 44 +++++ .../impliedNodeFormatEmit1(module=esnext).js | 60 ++++++ ...impliedNodeFormatEmit1(module=preserve).js | 52 +++++ ...dNodeFormatEmit1(module=system).errors.txt | 39 ++++ .../impliedNodeFormatEmit1(module=system).js | 148 +++++++++++++++ ...liedNodeFormatEmit1(module=umd).errors.txt | 39 ++++ .../impliedNodeFormatEmit1(module=umd).js | 178 ++++++++++++++++++ ...odeFormatEmit2(module=commonjs).errors.txt | 40 ++++ ...impliedNodeFormatEmit2(module=commonjs).js | 71 +++++++ ...dNodeFormatEmit2(module=esnext).errors.txt | 47 +++++ .../impliedNodeFormatEmit2(module=esnext).js | 63 +++++++ ...impliedNodeFormatEmit2(module=preserve).js | 55 ++++++ ...odeFormatEmit3(module=commonjs).errors.txt | 42 +++++ ...impliedNodeFormatEmit3(module=commonjs).js | 65 +++++++ ...dNodeFormatEmit3(module=esnext).errors.txt | 49 +++++ .../impliedNodeFormatEmit3(module=esnext).js | 65 +++++++ ...impliedNodeFormatEmit3(module=preserve).js | 57 ++++++ ...odeFormatEmit4(module=commonjs).errors.txt | 42 +++++ ...impliedNodeFormatEmit4(module=commonjs).js | 73 +++++++ ...dNodeFormatEmit4(module=esnext).errors.txt | 49 +++++ .../impliedNodeFormatEmit4(module=esnext).js | 73 +++++++ ...impliedNodeFormatEmit4(module=preserve).js | 57 ++++++ .../reference/impliedNodeFormatInterop1.js | 30 +++ .../impliedNodeFormatInterop1.symbols | 37 ++++ .../reference/impliedNodeFormatInterop1.types | 36 ++++ ...nterop-uses-referenced-project-settings.js | 96 ++++++++++ .../cases/compiler/esmNoSynthesizedDefault.ts | 18 ++ .../cases/compiler/impliedNodeFormatEmit1.ts | 39 ++++ .../cases/compiler/impliedNodeFormatEmit2.ts | 42 +++++ .../cases/compiler/impliedNodeFormatEmit3.ts | 44 +++++ .../cases/compiler/impliedNodeFormatEmit4.ts | 44 +++++ .../compiler/impliedNodeFormatInterop1.ts | 27 +++ 44 files changed, 2289 insertions(+) create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).errors.txt create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).js create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).symbols create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).types create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).errors.txt create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).js create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).symbols create mode 100644 tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).types create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=amd).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=preserve).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=system).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit1(module=umd).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit2(module=preserve).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit3(module=preserve).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).errors.txt create mode 100644 tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).js create mode 100644 tests/baselines/reference/impliedNodeFormatEmit4(module=preserve).js create mode 100644 tests/baselines/reference/impliedNodeFormatInterop1.js create mode 100644 tests/baselines/reference/impliedNodeFormatInterop1.symbols create mode 100644 tests/baselines/reference/impliedNodeFormatInterop1.types create mode 100644 tests/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js create mode 100644 tests/cases/compiler/esmNoSynthesizedDefault.ts create mode 100644 tests/cases/compiler/impliedNodeFormatEmit1.ts create mode 100644 tests/cases/compiler/impliedNodeFormatEmit2.ts create mode 100644 tests/cases/compiler/impliedNodeFormatEmit3.ts create mode 100644 tests/cases/compiler/impliedNodeFormatEmit4.ts create mode 100644 tests/cases/compiler/impliedNodeFormatInterop1.ts diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).errors.txt b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).errors.txt new file mode 100644 index 0000000000000..1c86c3703f83a --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).errors.txt @@ -0,0 +1,23 @@ +/index.ts(1,8): error TS1192: Module '"/node_modules/mdast-util-to-string/index"' has no default export. +/index.ts(7,8): error TS2339: Property 'default' does not exist on type 'typeof import("/node_modules/mdast-util-to-string/index")'. + + +==== /node_modules/mdast-util-to-string/package.json (0 errors) ==== + { "type": "module" } + +==== /node_modules/mdast-util-to-string/index.d.ts (0 errors) ==== + export function toString(): string; + +==== /index.ts (2 errors) ==== + import mdast, { toString } from 'mdast-util-to-string'; + ~~~~~ +!!! error TS1192: Module '"/node_modules/mdast-util-to-string/index"' has no default export. + mdast; + mdast.toString(); + + const mdast2 = await import('mdast-util-to-string'); + mdast2.toString(); + mdast2.default; + ~~~~~~~ +!!! error TS2339: Property 'default' does not exist on type 'typeof import("/node_modules/mdast-util-to-string/index")'. + \ No newline at end of file diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).js b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).js new file mode 100644 index 0000000000000..0c1812fa06439 --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/esmNoSynthesizedDefault.ts] //// + +//// [package.json] +{ "type": "module" } + +//// [index.d.ts] +export function toString(): string; + +//// [index.ts] +import mdast, { toString } from 'mdast-util-to-string'; +mdast; +mdast.toString(); + +const mdast2 = await import('mdast-util-to-string'); +mdast2.toString(); +mdast2.default; + + +//// [index.js] +import mdast from 'mdast-util-to-string'; +mdast; +mdast.toString(); +const mdast2 = await import('mdast-util-to-string'); +mdast2.toString(); +mdast2.default; diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).symbols b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).symbols new file mode 100644 index 0000000000000..a9c981cfa7cd5 --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/esmNoSynthesizedDefault.ts] //// + +=== /node_modules/mdast-util-to-string/index.d.ts === +export function toString(): string; +>toString : Symbol(toString, Decl(index.d.ts, 0, 0)) + +=== /index.ts === +import mdast, { toString } from 'mdast-util-to-string'; +>mdast : Symbol(mdast, Decl(index.ts, 0, 6)) +>toString : Symbol(toString, Decl(index.ts, 0, 15)) + +mdast; +>mdast : Symbol(mdast, Decl(index.ts, 0, 6)) + +mdast.toString(); +>mdast : Symbol(mdast, Decl(index.ts, 0, 6)) + +const mdast2 = await import('mdast-util-to-string'); +>mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) +>'mdast-util-to-string' : Symbol("/node_modules/mdast-util-to-string/index", Decl(index.d.ts, 0, 0)) + +mdast2.toString(); +>mdast2.toString : Symbol(toString, Decl(index.d.ts, 0, 0)) +>mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) +>toString : Symbol(toString, Decl(index.d.ts, 0, 0)) + +mdast2.default; +>mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) + diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).types b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).types new file mode 100644 index 0000000000000..804af336dc63b --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=esnext).types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/esmNoSynthesizedDefault.ts] //// + +=== /node_modules/mdast-util-to-string/index.d.ts === +export function toString(): string; +>toString : () => string + +=== /index.ts === +import mdast, { toString } from 'mdast-util-to-string'; +>mdast : any +>toString : () => string + +mdast; +>mdast : any + +mdast.toString(); +>mdast.toString() : any +>mdast.toString : any +>mdast : any +>toString : any + +const mdast2 = await import('mdast-util-to-string'); +>mdast2 : typeof import("/node_modules/mdast-util-to-string/index") +>await import('mdast-util-to-string') : typeof import("/node_modules/mdast-util-to-string/index") +>import('mdast-util-to-string') : Promise +>'mdast-util-to-string' : "mdast-util-to-string" + +mdast2.toString(); +>mdast2.toString() : string +>mdast2.toString : () => string +>mdast2 : typeof import("/node_modules/mdast-util-to-string/index") +>toString : () => string + +mdast2.default; +>mdast2.default : any +>mdast2 : typeof import("/node_modules/mdast-util-to-string/index") +>default : any + diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).errors.txt b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).errors.txt new file mode 100644 index 0000000000000..1c86c3703f83a --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).errors.txt @@ -0,0 +1,23 @@ +/index.ts(1,8): error TS1192: Module '"/node_modules/mdast-util-to-string/index"' has no default export. +/index.ts(7,8): error TS2339: Property 'default' does not exist on type 'typeof import("/node_modules/mdast-util-to-string/index")'. + + +==== /node_modules/mdast-util-to-string/package.json (0 errors) ==== + { "type": "module" } + +==== /node_modules/mdast-util-to-string/index.d.ts (0 errors) ==== + export function toString(): string; + +==== /index.ts (2 errors) ==== + import mdast, { toString } from 'mdast-util-to-string'; + ~~~~~ +!!! error TS1192: Module '"/node_modules/mdast-util-to-string/index"' has no default export. + mdast; + mdast.toString(); + + const mdast2 = await import('mdast-util-to-string'); + mdast2.toString(); + mdast2.default; + ~~~~~~~ +!!! error TS2339: Property 'default' does not exist on type 'typeof import("/node_modules/mdast-util-to-string/index")'. + \ No newline at end of file diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).js b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).js new file mode 100644 index 0000000000000..0c1812fa06439 --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/esmNoSynthesizedDefault.ts] //// + +//// [package.json] +{ "type": "module" } + +//// [index.d.ts] +export function toString(): string; + +//// [index.ts] +import mdast, { toString } from 'mdast-util-to-string'; +mdast; +mdast.toString(); + +const mdast2 = await import('mdast-util-to-string'); +mdast2.toString(); +mdast2.default; + + +//// [index.js] +import mdast from 'mdast-util-to-string'; +mdast; +mdast.toString(); +const mdast2 = await import('mdast-util-to-string'); +mdast2.toString(); +mdast2.default; diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).symbols b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).symbols new file mode 100644 index 0000000000000..a9c981cfa7cd5 --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/esmNoSynthesizedDefault.ts] //// + +=== /node_modules/mdast-util-to-string/index.d.ts === +export function toString(): string; +>toString : Symbol(toString, Decl(index.d.ts, 0, 0)) + +=== /index.ts === +import mdast, { toString } from 'mdast-util-to-string'; +>mdast : Symbol(mdast, Decl(index.ts, 0, 6)) +>toString : Symbol(toString, Decl(index.ts, 0, 15)) + +mdast; +>mdast : Symbol(mdast, Decl(index.ts, 0, 6)) + +mdast.toString(); +>mdast : Symbol(mdast, Decl(index.ts, 0, 6)) + +const mdast2 = await import('mdast-util-to-string'); +>mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) +>'mdast-util-to-string' : Symbol("/node_modules/mdast-util-to-string/index", Decl(index.d.ts, 0, 0)) + +mdast2.toString(); +>mdast2.toString : Symbol(toString, Decl(index.d.ts, 0, 0)) +>mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) +>toString : Symbol(toString, Decl(index.d.ts, 0, 0)) + +mdast2.default; +>mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) + diff --git a/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).types b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).types new file mode 100644 index 0000000000000..804af336dc63b --- /dev/null +++ b/tests/baselines/reference/esmNoSynthesizedDefault(module=preserve).types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/esmNoSynthesizedDefault.ts] //// + +=== /node_modules/mdast-util-to-string/index.d.ts === +export function toString(): string; +>toString : () => string + +=== /index.ts === +import mdast, { toString } from 'mdast-util-to-string'; +>mdast : any +>toString : () => string + +mdast; +>mdast : any + +mdast.toString(); +>mdast.toString() : any +>mdast.toString : any +>mdast : any +>toString : any + +const mdast2 = await import('mdast-util-to-string'); +>mdast2 : typeof import("/node_modules/mdast-util-to-string/index") +>await import('mdast-util-to-string') : typeof import("/node_modules/mdast-util-to-string/index") +>import('mdast-util-to-string') : Promise +>'mdast-util-to-string' : "mdast-util-to-string" + +mdast2.toString(); +>mdast2.toString() : string +>mdast2.toString : () => string +>mdast2 : typeof import("/node_modules/mdast-util-to-string/index") +>toString : () => string + +mdast2.default; +>mdast2.default : any +>mdast2 : typeof import("/node_modules/mdast-util-to-string/index") +>default : any + diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt new file mode 100644 index 0000000000000..b837dc175ce01 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).errors.txt @@ -0,0 +1,37 @@ +error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. + + +!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /h.mts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /i.cts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).js b/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).js new file mode 100644 index 0000000000000..8cdc5ac2b5358 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=amd).js @@ -0,0 +1,98 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit1.ts] //// + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [b.mjs] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [c.cjs] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [d.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [e.mjs] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [f.mjs] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [g.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//// [h.mjs] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//// [i.cjs] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//// [dummy.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).errors.txt new file mode 100644 index 0000000000000..b837dc175ce01 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).errors.txt @@ -0,0 +1,37 @@ +error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. + + +!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /h.mts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /i.cts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).js b/tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).js new file mode 100644 index 0000000000000..0b19d2dc41f55 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=commonjs).js @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit1.ts] //// + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).errors.txt new file mode 100644 index 0000000000000..08c39ac0e9b36 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).errors.txt @@ -0,0 +1,44 @@ +/g.ts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/h.mts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/i.cts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + + +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /h.mts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /i.cts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).js b/tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).js new file mode 100644 index 0000000000000..d27ae7c8e185c --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=esnext).js @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit1.ts] //// + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +export {}; +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +export {}; diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=preserve).js b/tests/baselines/reference/impliedNodeFormatEmit1(module=preserve).js new file mode 100644 index 0000000000000..067de7888d3e7 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=preserve).js @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit1.ts] //// + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +export var _ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +//// [h.mjs] +//// [i.cjs] +//// [dummy.js] diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt new file mode 100644 index 0000000000000..0482da58d7b5d --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=system).errors.txt @@ -0,0 +1,39 @@ +error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. +error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. + + +!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. +!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /h.mts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /i.cts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=system).js b/tests/baselines/reference/impliedNodeFormatEmit1(module=system).js new file mode 100644 index 0000000000000..f991a4eac017d --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=system).js @@ -0,0 +1,148 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit1.ts] //// + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var _; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("_", _ = 0); + } + }; +}); +//// [b.mjs] +System.register([], function (exports_1, context_1) { + "use strict"; + var _; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("_", _ = 0); + } + }; +}); +//// [c.cjs] +System.register([], function (exports_1, context_1) { + "use strict"; + var _; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("_", _ = 0); + } + }; +}); +//// [d.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var _; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("_", _ = 0); + } + }; +}); +//// [e.mjs] +System.register([], function (exports_1, context_1) { + "use strict"; + var _; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("_", _ = 0); + } + }; +}); +//// [f.mjs] +System.register([], function (exports_1, context_1) { + "use strict"; + var _; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + exports_1("_", _ = 0); + } + }; +}); +//// [g.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + } + }; +}); +//// [h.mjs] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + } + }; +}); +//// [i.cjs] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + } + }; +}); +//// [dummy.js] +System.register([], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters: [], + execute: function () { + } + }; +}); diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt new file mode 100644 index 0000000000000..0482da58d7b5d --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).errors.txt @@ -0,0 +1,39 @@ +error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. +error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. + + +!!! error TS5071: Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'. +!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /h.mts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /i.cts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).js b/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).js new file mode 100644 index 0000000000000..9fff0d4cd16d4 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit1(module=umd).js @@ -0,0 +1,178 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit1.ts] //// + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [b.mjs] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [c.cjs] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [d.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [e.mjs] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [f.mjs] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._ = void 0; + exports._ = 0; +}); +//// [g.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//// [h.mjs] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//// [i.cjs] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//// [dummy.js] +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); diff --git a/tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).errors.txt new file mode 100644 index 0000000000000..b783a3b97e8cd --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).errors.txt @@ -0,0 +1,40 @@ +error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. + + +!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. +==== /package.json (0 errors) ==== + {} + +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /h.mts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /i.cts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).js b/tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).js new file mode 100644 index 0000000000000..4fd6dc70684ae --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit2(module=commonjs).js @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit2.ts] //// + +//// [package.json] +{} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).errors.txt new file mode 100644 index 0000000000000..a74bc098343a7 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).errors.txt @@ -0,0 +1,47 @@ +/g.ts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/h.mts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/i.cts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + + +==== /package.json (0 errors) ==== + {} + +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /h.mts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /i.cts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).js b/tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).js new file mode 100644 index 0000000000000..df4f9efe15711 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit2(module=esnext).js @@ -0,0 +1,63 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit2.ts] //// + +//// [package.json] +{} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +export {}; +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +export {}; diff --git a/tests/baselines/reference/impliedNodeFormatEmit2(module=preserve).js b/tests/baselines/reference/impliedNodeFormatEmit2(module=preserve).js new file mode 100644 index 0000000000000..ca5229e56031b --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit2(module=preserve).js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit2.ts] //// + +//// [package.json] +{} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +export var _ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +//// [h.mjs] +//// [i.cjs] +//// [dummy.js] diff --git a/tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).errors.txt new file mode 100644 index 0000000000000..bad14be6e619e --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).errors.txt @@ -0,0 +1,42 @@ +error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. + + +!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. +==== /package.json (0 errors) ==== + { + "type": "module" + } + +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /h.mts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /i.cts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).js b/tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).js new file mode 100644 index 0000000000000..27f4f58d9ba5b --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit3(module=commonjs).js @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit3.ts] //// + +//// [package.json] +{ + "type": "module" +} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +export {}; +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +export {}; diff --git a/tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).errors.txt new file mode 100644 index 0000000000000..5f8efe425b6c7 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).errors.txt @@ -0,0 +1,49 @@ +/g.ts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/h.mts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/i.cts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + + +==== /package.json (0 errors) ==== + { + "type": "module" + } + +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /h.mts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /i.cts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).js b/tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).js new file mode 100644 index 0000000000000..27f4f58d9ba5b --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit3(module=esnext).js @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit3.ts] //// + +//// [package.json] +{ + "type": "module" +} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +export {}; +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +export {}; diff --git a/tests/baselines/reference/impliedNodeFormatEmit3(module=preserve).js b/tests/baselines/reference/impliedNodeFormatEmit3(module=preserve).js new file mode 100644 index 0000000000000..91cb7ffa16e6a --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit3(module=preserve).js @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit3.ts] //// + +//// [package.json] +{ + "type": "module" +} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +export var _ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +//// [h.mjs] +//// [i.cjs] +//// [dummy.js] diff --git a/tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).errors.txt new file mode 100644 index 0000000000000..5229094dfa736 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).errors.txt @@ -0,0 +1,42 @@ +error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. + + +!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. +==== /package.json (0 errors) ==== + { + "type": "commonjs" + } + +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /h.mts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /i.cts (0 errors) ==== + import {} from "./a"; + import a = require("./a"); + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).js b/tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).js new file mode 100644 index 0000000000000..aa7fab5c345d9 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit4(module=commonjs).js @@ -0,0 +1,73 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit4.ts] //// + +//// [package.json] +{ + "type": "commonjs" +} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).errors.txt b/tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).errors.txt new file mode 100644 index 0000000000000..996c1c41bad96 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).errors.txt @@ -0,0 +1,49 @@ +/g.ts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/h.mts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. +/i.cts(2,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + + +==== /package.json (0 errors) ==== + { + "type": "commonjs" + } + +==== /a.ts (0 errors) ==== + export const _ = 0; + +==== /b.mts (0 errors) ==== + export const _ = 0; + +==== /c.cts (0 errors) ==== + export const _ = 0; + +==== /d.js (0 errors) ==== + export const _ = 0; + +==== /e.mjs (0 errors) ==== + export const _ = 0; + +==== /f.mjs (0 errors) ==== + export const _ = 0; + +==== /g.ts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /h.mts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /i.cts (1 errors) ==== + import {} from "./a"; + import a = require("./a"); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead. + +==== /dummy.ts (0 errors) ==== + export {}; + \ No newline at end of file diff --git a/tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).js b/tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).js new file mode 100644 index 0000000000000..aa7fab5c345d9 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit4(module=esnext).js @@ -0,0 +1,73 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit4.ts] //// + +//// [package.json] +{ + "type": "commonjs" +} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [d.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports._ = void 0; +exports._ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [h.mjs] +export {}; +//// [i.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [dummy.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/impliedNodeFormatEmit4(module=preserve).js b/tests/baselines/reference/impliedNodeFormatEmit4(module=preserve).js new file mode 100644 index 0000000000000..3de162effe8f8 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatEmit4(module=preserve).js @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/impliedNodeFormatEmit4.ts] //// + +//// [package.json] +{ + "type": "commonjs" +} + +//// [a.ts] +export const _ = 0; + +//// [b.mts] +export const _ = 0; + +//// [c.cts] +export const _ = 0; + +//// [d.js] +export const _ = 0; + +//// [e.mjs] +export const _ = 0; + +//// [f.mjs] +export const _ = 0; + +//// [g.ts] +import {} from "./a"; +import a = require("./a"); + +//// [h.mts] +import {} from "./a"; +import a = require("./a"); + +//// [i.cts] +import {} from "./a"; +import a = require("./a"); + +//// [dummy.ts] +export {}; + + +//// [a.js] +export var _ = 0; +//// [b.mjs] +export var _ = 0; +//// [c.cjs] +export var _ = 0; +//// [d.js] +export var _ = 0; +//// [e.mjs] +export var _ = 0; +//// [f.mjs] +export var _ = 0; +//// [g.js] +//// [h.mjs] +//// [i.cjs] +//// [dummy.js] diff --git a/tests/baselines/reference/impliedNodeFormatInterop1.js b/tests/baselines/reference/impliedNodeFormatInterop1.js new file mode 100644 index 0000000000000..8f57e8dce3d80 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatInterop1.js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/impliedNodeFormatInterop1.ts] //// + +//// [package.json] +{ + "name": "highlight.js", + "type": "commonjs", + "types": "index.d.ts" +} + +//// [index.d.ts] +declare module "highlight.js" { + export interface HighlightAPI { + highlight(code: string): string; + } + const hljs: HighlightAPI; + export default hljs; +} + +//// [core.d.ts] +import hljs from "highlight.js"; +export default hljs; + +//// [index.ts] +import hljs from "highlight.js/lib/core"; +hljs.highlight("code"); + + +//// [index.js] +import hljs from "highlight.js/lib/core"; +hljs.highlight("code"); diff --git a/tests/baselines/reference/impliedNodeFormatInterop1.symbols b/tests/baselines/reference/impliedNodeFormatInterop1.symbols new file mode 100644 index 0000000000000..15b707874681b --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatInterop1.symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/impliedNodeFormatInterop1.ts] //// + +=== /node_modules/highlight.js/index.d.ts === +declare module "highlight.js" { +>"highlight.js" : Symbol("highlight.js", Decl(index.d.ts, 0, 0)) + + export interface HighlightAPI { +>HighlightAPI : Symbol(HighlightAPI, Decl(index.d.ts, 0, 31)) + + highlight(code: string): string; +>highlight : Symbol(HighlightAPI.highlight, Decl(index.d.ts, 1, 33)) +>code : Symbol(code, Decl(index.d.ts, 2, 14)) + } + const hljs: HighlightAPI; +>hljs : Symbol(hljs, Decl(index.d.ts, 4, 7)) +>HighlightAPI : Symbol(HighlightAPI, Decl(index.d.ts, 0, 31)) + + export default hljs; +>hljs : Symbol(hljs, Decl(index.d.ts, 4, 7)) +} + +=== /node_modules/highlight.js/lib/core.d.ts === +import hljs from "highlight.js"; +>hljs : Symbol(hljs, Decl(core.d.ts, 0, 6)) + +export default hljs; +>hljs : Symbol(hljs, Decl(core.d.ts, 0, 6)) + +=== /index.ts === +import hljs from "highlight.js/lib/core"; +>hljs : Symbol(hljs, Decl(index.ts, 0, 6)) + +hljs.highlight("code"); +>hljs.highlight : Symbol(HighlightAPI.highlight, Decl(index.d.ts, 1, 33)) +>hljs : Symbol(hljs, Decl(index.ts, 0, 6)) +>highlight : Symbol(HighlightAPI.highlight, Decl(index.d.ts, 1, 33)) + diff --git a/tests/baselines/reference/impliedNodeFormatInterop1.types b/tests/baselines/reference/impliedNodeFormatInterop1.types new file mode 100644 index 0000000000000..272664d7734e4 --- /dev/null +++ b/tests/baselines/reference/impliedNodeFormatInterop1.types @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/impliedNodeFormatInterop1.ts] //// + +=== /node_modules/highlight.js/index.d.ts === +declare module "highlight.js" { +>"highlight.js" : typeof import("highlight.js") + + export interface HighlightAPI { + highlight(code: string): string; +>highlight : (code: string) => string +>code : string + } + const hljs: HighlightAPI; +>hljs : HighlightAPI + + export default hljs; +>hljs : HighlightAPI +} + +=== /node_modules/highlight.js/lib/core.d.ts === +import hljs from "highlight.js"; +>hljs : import("highlight.js").HighlightAPI + +export default hljs; +>hljs : import("highlight.js").HighlightAPI + +=== /index.ts === +import hljs from "highlight.js/lib/core"; +>hljs : import("highlight.js").HighlightAPI + +hljs.highlight("code"); +>hljs.highlight("code") : string +>hljs.highlight : (code: string) => string +>hljs : import("highlight.js").HighlightAPI +>highlight : (code: string) => string +>"code" : "code" + diff --git a/tests/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js b/tests/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js new file mode 100644 index 0000000000000..866c833d4187b --- /dev/null +++ b/tests/baselines/reference/tsc/projectReferences/default-import-interop-uses-referenced-project-settings.js @@ -0,0 +1,96 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Input:: +//// [/app/src/index.ts] + + import local from "./local"; // Error + import esm from "esm-package"; // Error + import referencedSource from "../../lib/src/a"; // Error + import referencedDeclaration from "../../lib/dist/a"; // Error + import ambiguous from "ambiguous-package"; // Ok + +//// [/app/src/local.ts] +export const local = 0; + +//// [/app/tsconfig.json] +{ + "compilerOptions": { + "module": "esnext", + "moduleResolution": "bundler", + "rootDir": "src", + "outDir": "dist" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../lib" + } + ] +} + +//// [/lib/dist/a.d.ts] +export declare const a = 0; + +//// [/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/src/a.ts] +export const a = 0; + +//// [/lib/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "src", + "outDir": "dist", + "module": "esnext", + "moduleResolution": "bundler" + }, + "include": [ + "src" + ] +} + +//// [/node_modules/ambiguous-package/index.d.ts] +export declare const ambiguous: number; + +//// [/node_modules/ambiguous-package/package.json] +{ "name": "ambiguous-package" } + +//// [/node_modules/esm-package/index.d.ts] +export declare const esm: number; + +//// [/node_modules/esm-package/package.json] +{ "name": "esm-package", "type": "module" } + + + +Output:: +/lib/tsc --p app --pretty false +app/src/index.ts(2,28): error TS2613: Module '"/app/src/local"' has no default export. Did you mean to use 'import { local } from "/app/src/local"' instead? +app/src/index.ts(3,28): error TS2613: Module '"/node_modules/esm-package/index"' has no default export. Did you mean to use 'import { esm } from "/node_modules/esm-package/index"' instead? +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated + + +//// [/app/dist/index.js] +export {}; + + +//// [/app/dist/local.js] +export var local = 0; + + diff --git a/tests/cases/compiler/esmNoSynthesizedDefault.ts b/tests/cases/compiler/esmNoSynthesizedDefault.ts new file mode 100644 index 0000000000000..17fcea5f883c2 --- /dev/null +++ b/tests/cases/compiler/esmNoSynthesizedDefault.ts @@ -0,0 +1,18 @@ +// @target: esnext +// @module: preserve, esnext +// @moduleResolution: bundler + +// @Filename: /node_modules/mdast-util-to-string/package.json +{ "type": "module" } + +// @Filename: /node_modules/mdast-util-to-string/index.d.ts +export function toString(): string; + +// @Filename: /index.ts +import mdast, { toString } from 'mdast-util-to-string'; +mdast; +mdast.toString(); + +const mdast2 = await import('mdast-util-to-string'); +mdast2.toString(); +mdast2.default; diff --git a/tests/cases/compiler/impliedNodeFormatEmit1.ts b/tests/cases/compiler/impliedNodeFormatEmit1.ts new file mode 100644 index 0000000000000..6fd41c8c32ac4 --- /dev/null +++ b/tests/cases/compiler/impliedNodeFormatEmit1.ts @@ -0,0 +1,39 @@ +// @allowJs: true +// @checkJs: true +// @outDir: dist +// @module: esnext, commonjs, amd, system, umd, preserve +// @moduleResolution: bundler +// @noTypesAndSymbols: true + +// @Filename: /a.ts +export const _ = 0; + +// @Filename: /b.mts +export const _ = 0; + +// @Filename: /c.cts +export const _ = 0; + +// @Filename: /d.js +export const _ = 0; + +// @Filename: /e.mjs +export const _ = 0; + +// @Filename: /f.mjs +export const _ = 0; + +// @Filename: /g.ts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /h.mts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /i.cts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /dummy.ts +export {}; diff --git a/tests/cases/compiler/impliedNodeFormatEmit2.ts b/tests/cases/compiler/impliedNodeFormatEmit2.ts new file mode 100644 index 0000000000000..851fbd748a790 --- /dev/null +++ b/tests/cases/compiler/impliedNodeFormatEmit2.ts @@ -0,0 +1,42 @@ +// @allowJs: true +// @checkJs: true +// @outDir: dist +// @module: esnext, commonjs, preserve +// @moduleResolution: bundler +// @noTypesAndSymbols: true + +// @Filename: /package.json +{} + +// @Filename: /a.ts +export const _ = 0; + +// @Filename: /b.mts +export const _ = 0; + +// @Filename: /c.cts +export const _ = 0; + +// @Filename: /d.js +export const _ = 0; + +// @Filename: /e.mjs +export const _ = 0; + +// @Filename: /f.mjs +export const _ = 0; + +// @Filename: /g.ts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /h.mts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /i.cts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /dummy.ts +export {}; diff --git a/tests/cases/compiler/impliedNodeFormatEmit3.ts b/tests/cases/compiler/impliedNodeFormatEmit3.ts new file mode 100644 index 0000000000000..459d542e26e0d --- /dev/null +++ b/tests/cases/compiler/impliedNodeFormatEmit3.ts @@ -0,0 +1,44 @@ +// @allowJs: true +// @checkJs: true +// @outDir: dist +// @module: esnext, commonjs, preserve +// @moduleResolution: bundler +// @noTypesAndSymbols: true + +// @Filename: /package.json +{ + "type": "module" +} + +// @Filename: /a.ts +export const _ = 0; + +// @Filename: /b.mts +export const _ = 0; + +// @Filename: /c.cts +export const _ = 0; + +// @Filename: /d.js +export const _ = 0; + +// @Filename: /e.mjs +export const _ = 0; + +// @Filename: /f.mjs +export const _ = 0; + +// @Filename: /g.ts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /h.mts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /i.cts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /dummy.ts +export {}; diff --git a/tests/cases/compiler/impliedNodeFormatEmit4.ts b/tests/cases/compiler/impliedNodeFormatEmit4.ts new file mode 100644 index 0000000000000..769510c6c0ce9 --- /dev/null +++ b/tests/cases/compiler/impliedNodeFormatEmit4.ts @@ -0,0 +1,44 @@ +// @allowJs: true +// @checkJs: true +// @outDir: dist +// @module: esnext, commonjs, preserve +// @moduleResolution: bundler +// @noTypesAndSymbols: true + +// @Filename: /package.json +{ + "type": "commonjs" +} + +// @Filename: /a.ts +export const _ = 0; + +// @Filename: /b.mts +export const _ = 0; + +// @Filename: /c.cts +export const _ = 0; + +// @Filename: /d.js +export const _ = 0; + +// @Filename: /e.mjs +export const _ = 0; + +// @Filename: /f.mjs +export const _ = 0; + +// @Filename: /g.ts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /h.mts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /i.cts +import {} from "./a"; +import a = require("./a"); + +// @Filename: /dummy.ts +export {}; diff --git a/tests/cases/compiler/impliedNodeFormatInterop1.ts b/tests/cases/compiler/impliedNodeFormatInterop1.ts new file mode 100644 index 0000000000000..c4e18c0ddc0e9 --- /dev/null +++ b/tests/cases/compiler/impliedNodeFormatInterop1.ts @@ -0,0 +1,27 @@ +// @module: es2020 +// @moduleResolution: node10 +// @esModuleInterop: true + +// @Filename: /node_modules/highlight.js/package.json +{ + "name": "highlight.js", + "type": "commonjs", + "types": "index.d.ts" +} + +// @Filename: /node_modules/highlight.js/index.d.ts +declare module "highlight.js" { + export interface HighlightAPI { + highlight(code: string): string; + } + const hljs: HighlightAPI; + export default hljs; +} + +// @Filename: /node_modules/highlight.js/lib/core.d.ts +import hljs from "highlight.js"; +export default hljs; + +// @Filename: /index.ts +import hljs from "highlight.js/lib/core"; +hljs.highlight("code"); From c89137d45d4d1d3afa3da240e178b65d08efe595 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 21 Mar 2024 11:44:50 -0700 Subject: [PATCH 03/12] Add traceModuleResolution baseline changes --- .../allowJsCrossMonorepoPackage.trace.json | 26 ++- ...ionsExcludesNode(module=esnext).trace.json | 23 ++- ...nsExcludesNode(module=preserve).trace.json | 23 ++- ...odule(moduleresolution=bundler).trace.json | 160 ++++++++++++++++- ...sextensions=false,noemit=false).trace.json | 41 ++++- ...tsextensions=false,noemit=true).trace.json | 41 ++++- ...tsextensions=true,noemit=false).trace.json | 41 ++++- ...gtsextensions=true,noemit=true).trace.json | 41 ++++- ...dlerNodeModules1(module=esnext).trace.json | 41 ++++- ...erNodeModules1(module=preserve).trace.json | 41 ++++- ...bundlerRelative1(module=esnext).trace.json | 27 ++- ...ndlerRelative1(module=preserve).trace.json | 27 ++- .../reference/cacheResolutions.trace.json | 28 ++- .../cachedModuleResolution1.trace.json | 30 +++- .../cachedModuleResolution2.trace.json | 30 +++- .../cachedModuleResolution3.trace.json | 29 +++- .../cachedModuleResolution4.trace.json | 29 +++- .../cachedModuleResolution5.trace.json | 29 +++- .../cachedModuleResolution6.trace.json | 26 ++- .../cachedModuleResolution7.trace.json | 26 ++- .../cachedModuleResolution8.trace.json | 26 ++- .../cachedModuleResolution9.trace.json | 26 ++- ...lback(moduleresolution=bundler).trace.json | 20 ++- ...esolvepackagejsonexports=false).trace.json | 24 ++- ...resolvepackagejsonexports=true).trace.json | 24 ++- ...age_relativeImportWithinPackage.trace.json | 23 ++- ...ativeImportWithinPackage_scoped.trace.json | 23 ++- ...balAugmentationModuleResolution.trace.json | 18 +- .../importWithTrailingSlash.trace.json | 26 ++- ...portWithTrailingSlash_noResolve.trace.json | 17 +- .../reference/jsdocInTypeScript.trace.json | 30 +++- .../libTypeScriptOverrideSimple.trace.json | 22 ++- ...bTypeScriptOverrideSimpleConfig.trace.json | 21 ++- .../libTypeScriptSubfileResolving.trace.json | 26 ++- ...ypeScriptSubfileResolvingConfig.trace.json | 26 ++- .../reference/library-reference-1.trace.json | 22 ++- .../reference/library-reference-10.trace.json | 19 +- .../reference/library-reference-11.trace.json | 20 ++- .../reference/library-reference-12.trace.json | 21 ++- .../reference/library-reference-13.trace.json | 25 ++- .../reference/library-reference-14.trace.json | 23 ++- .../reference/library-reference-15.trace.json | 23 ++- .../reference/library-reference-2.trace.json | 18 +- .../reference/library-reference-3.trace.json | 22 ++- .../reference/library-reference-4.trace.json | 29 +++- .../reference/library-reference-5.trace.json | 29 +++- .../reference/library-reference-6.trace.json | 22 ++- .../reference/library-reference-7.trace.json | 22 ++- .../reference/library-reference-8.trace.json | 26 ++- ...brary-reference-scoped-packages.trace.json | 21 ++- ...NodeModuleJsDepthDefaultsToZero.trace.json | 19 +- .../reference/modulePreserve2.trace.json | 158 ++++++++++++++++- .../reference/modulePreserve3.trace.json | 163 +++++++++++++++++- ...olutionAsTypeReferenceDirective.trace.json | 19 +- ...AsTypeReferenceDirectiveAmbient.trace.json | 19 +- ...nAsTypeReferenceDirectiveScoped.trace.json | 36 +++- ...geIdWithRelativeAndAbsolutePath.trace.json | 32 +++- .../moduleResolutionWithExtensions.trace.json | 26 ++- ...tionWithExtensions_notSupported.trace.json | 17 +- ...ionWithExtensions_notSupported2.trace.json | 17 +- ...ionWithExtensions_notSupported3.trace.json | 17 +- ...lutionWithExtensions_unexpected.trace.json | 17 +- ...utionWithExtensions_unexpected2.trace.json | 17 +- ...thExtensions_withAmbientPresent.trace.json | 18 +- ...olutionWithExtensions_withPaths.trace.json | 44 ++++- .../moduleResolutionWithRequire.trace.json | 17 +- ...eResolutionWithRequireAndImport.trace.json | 18 +- ...uleResolutionWithSuffixes_empty.trace.json | 18 +- ...lutionWithSuffixes_notSpecified.trace.json | 18 +- ...oduleResolutionWithSuffixes_one.trace.json | 19 +- ...ResolutionWithSuffixes_oneBlank.trace.json | 18 +- ...olutionWithSuffixes_oneNotFound.trace.json | 18 +- ...Suffixes_one_dirModuleWithIndex.trace.json | 21 ++- ...WithSuffixes_one_externalModule.trace.json | 20 ++- ...Suffixes_one_externalModulePath.trace.json | 20 ++- ...es_one_externalModule_withPaths.trace.json | 21 ++- ...thSuffixes_one_externalTSModule.trace.json | 20 ++- ...lutionWithSuffixes_one_jsModule.trace.json | 19 +- ...tionWithSuffixes_one_jsonModule.trace.json | 17 +- ...nWithSuffixes_threeLastIsBlank1.trace.json | 20 ++- ...nWithSuffixes_threeLastIsBlank2.trace.json | 19 +- ...nWithSuffixes_threeLastIsBlank3.trace.json | 18 +- ...nWithSuffixes_threeLastIsBlank4.trace.json | 17 +- .../moduleResolutionWithSymlinks.trace.json | 24 ++- ...onWithSymlinks_notInNodeModules.trace.json | 24 ++- ...onWithSymlinks_preserveSymlinks.trace.json | 30 +++- ...tionWithSymlinks_referenceTypes.trace.json | 25 ++- ...solutionWithSymlinks_withOutDir.trace.json | 24 ++- ...on_packageJson_notAtPackageRoot.trace.json | 18 +- ...AtPackageRoot_fakeScopedPackage.trace.json | 18 +- ...ution_packageJson_scopedPackage.trace.json | 18 +- ...on_packageJson_yesAtPackageRoot.trace.json | 17 +- ...AtPackageRoot_fakeScopedPackage.trace.json | 17 +- ...ageRoot_mainFieldInSubDirectory.trace.json | 21 ++- ...irect(moduleresolution=bundler).trace.json | 25 ++- ...e10AlternateResult_noResolution.trace.json | 20 ++- .../node10Alternateresult_noTypes.trace.json | 20 ++- .../reference/node10IsNode_node.trace.json | 21 ++- .../reference/node10IsNode_node10.trace.json | 21 ++- .../nodeColonModuleResolution.trace.json | 25 ++- .../nodeColonModuleResolution2.trace.json | 25 ++- .../reference/packageJsonMain.trace.json | 17 +- .../packageJsonMain_isNonRecursive.trace.json | 17 +- ...ppingBasedModuleResolution1_amd.trace.json | 18 +- ...pingBasedModuleResolution1_node.trace.json | 18 +- ...gBasedModuleResolution2_classic.trace.json | 21 ++- ...pingBasedModuleResolution2_node.trace.json | 21 ++- ...gBasedModuleResolution3_classic.trace.json | 26 ++- ...pingBasedModuleResolution3_node.trace.json | 28 ++- ...gBasedModuleResolution4_classic.trace.json | 26 ++- ...pingBasedModuleResolution4_node.trace.json | 28 ++- ...gBasedModuleResolution5_classic.trace.json | 31 +++- ...pingBasedModuleResolution5_node.trace.json | 33 +++- ...gBasedModuleResolution6_classic.trace.json | 27 ++- ...pingBasedModuleResolution6_node.trace.json | 28 ++- ...gBasedModuleResolution7_classic.trace.json | 35 +++- ...pingBasedModuleResolution7_node.trace.json | 38 +++- ...gBasedModuleResolution8_classic.trace.json | 22 ++- ...pingBasedModuleResolution8_node.trace.json | 22 ++- ...lution_rootImport_aliasWithRoot.trace.json | 24 ++- ...liasWithRoot_differentRootTypes.trace.json | 24 ++- ...t_aliasWithRoot_multipleAliases.trace.json | 25 ++- ...port_aliasWithRoot_realRootFile.trace.json | 20 ++- ...tion_rootImport_noAliasWithRoot.trace.json | 24 ++- ...rt_noAliasWithRoot_realRootFile.trace.json | 20 ++- ...dModuleResolution_withExtension.trace.json | 21 ++- ...eResolution_withExtensionInName.trace.json | 27 ++- ...ithExtension_MapedToNodeModules.trace.json | 17 +- ...tion_withExtension_failedLookup.trace.json | 17 +- .../reference/pathsValidation4.trace.json | 19 +- .../reference/pathsValidation5.trace.json | 19 +- ...ResolveJsonModuleAndPathMapping.trace.json | 17 +- .../requireOfJsonFile_PathMapping.trace.json | 17 +- ...stic1(moduleresolution=bundler).trace.json | 22 ++- .../reference/scopedPackages.trace.json | 30 +++- .../scopedPackagesClassic.trace.json | 21 ++- .../selfNameModuleAugmentation.trace.json | 25 ++- ...tiveScopedPackageCustomTypeRoot.trace.json | 29 +++- ...DirectiveWithFailedFromTypeRoot.trace.json | 17 +- ...eferenceDirectiveWithTypeAsFile.trace.json | 21 ++- .../typeReferenceDirectives1.trace.json | 20 ++- .../typeReferenceDirectives10.trace.json | 21 ++- .../typeReferenceDirectives11.trace.json | 21 ++- .../typeReferenceDirectives12.trace.json | 22 ++- .../typeReferenceDirectives13.trace.json | 21 ++- .../typeReferenceDirectives2.trace.json | 20 ++- .../typeReferenceDirectives3.trace.json | 21 ++- .../typeReferenceDirectives4.trace.json | 21 ++- .../typeReferenceDirectives5.trace.json | 21 ++- .../typeReferenceDirectives6.trace.json | 21 ++- .../typeReferenceDirectives7.trace.json | 20 ++- .../typeReferenceDirectives8.trace.json | 21 ++- .../typeReferenceDirectives9.trace.json | 22 ++- ...mMultipleNodeModulesDirectories.trace.json | 33 +++- ...romNodeModulesInParentDirectory.trace.json | 22 ++- .../typesVersions.ambientModules.trace.json | 158 ++++++++++++++++- .../typesVersions.emptyTypes.trace.json | 160 ++++++++++++++++- .../typesVersions.justIndex.trace.json | 160 ++++++++++++++++- .../typesVersions.multiFile.trace.json | 160 ++++++++++++++++- ...VersionsDeclarationEmit.ambient.trace.json | 158 ++++++++++++++++- ...rsionsDeclarationEmit.multiFile.trace.json | 160 ++++++++++++++++- ...it.multiFileBackReferenceToSelf.trace.json | 161 ++++++++++++++++- ...ultiFileBackReferenceToUnmapped.trace.json | 159 ++++++++++++++++- .../reference/typingsLookup1.trace.json | 21 ++- .../reference/typingsLookup2.trace.json | 17 +- .../reference/typingsLookup3.trace.json | 21 ++- .../reference/typingsLookup4.trace.json | 22 ++- .../reference/typingsLookupAmd.trace.json | 28 ++- 168 files changed, 5209 insertions(+), 218 deletions(-) diff --git a/tests/baselines/reference/allowJsCrossMonorepoPackage.trace.json b/tests/baselines/reference/allowJsCrossMonorepoPackage.trace.json index 17b86da7c4b24..5439650749863 100644 --- a/tests/baselines/reference/allowJsCrossMonorepoPackage.trace.json +++ b/tests/baselines/reference/allowJsCrossMonorepoPackage.trace.json @@ -1,8 +1,9 @@ [ + "Found 'package.json' at '/packages/main/package.json'.", "======== Resolving module 'shared' from '/packages/main/index.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "Found 'package.json' at '/packages/main/package.json'.", + "File '/packages/main/package.json' exists according to earlier cached lookups.", "Loading module 'shared' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Found 'package.json' at '/packages/main/node_modules/shared/package.json'.", @@ -45,6 +46,7 @@ "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", "Resolving real path for '/packages/main/node_modules/shared/index.js', result '/packages/shared/index.js'.", "======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared/index.js@1.0.0'. ========", + "Found 'package.json' at '/packages/shared/package.json'.", "======== Resolving module './utils.js' from '/packages/shared/index.js'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", @@ -55,10 +57,11 @@ "File '/packages/shared/utils.d.ts' does not exist.", "File '/packages/shared/utils.js' exists - use it as a name resolution result.", "======== Module name './utils.js' was successfully resolved to '/packages/shared/utils.js'. ========", + "File '/packages/shared/package.json' exists according to earlier cached lookups.", "======== Resolving module 'pkg' from '/packages/shared/utils.js'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "Found 'package.json' at '/packages/shared/package.json'.", + "File '/packages/shared/package.json' exists according to earlier cached lookups.", "Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Directory '/packages/shared/node_modules' does not exist, skipping all lookups in it.", @@ -72,6 +75,11 @@ "File '/node_modules/pkg/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'.", "======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts'. ========", + "File '/node_modules/pkg/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/packages/main/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,6 +94,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/packages/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/packages/main/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -100,6 +110,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/packages/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/packages/main/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -114,6 +126,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/packages/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/packages/main/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -128,6 +142,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/packages/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/packages/main/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -142,6 +158,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/packages/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/packages/main/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -155,5 +173,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/packages/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerConditionsExcludesNode(module=esnext).trace.json b/tests/baselines/reference/bundlerConditionsExcludesNode(module=esnext).trace.json index 0e5cd2eb567dc..f168eca1e4486 100644 --- a/tests/baselines/reference/bundlerConditionsExcludesNode(module=esnext).trace.json +++ b/tests/baselines/reference/bundlerConditionsExcludesNode(module=esnext).trace.json @@ -1,11 +1,14 @@ [ + "Found 'package.json' at '/node_modules/conditions/package.json'.", + "File '/node_modules/conditions/package.json' exists according to earlier cached lookups.", + "File '/package.json' does not exist.", "======== Resolving module 'conditions' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/conditions/package.json'.", + "File '/node_modules/conditions/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Saw non-matching condition 'node'.", "Matched 'exports' condition 'default'.", @@ -18,6 +21,8 @@ "Exiting conditional exports.", "Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'.", "======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/index.web.d.ts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +35,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +63,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +77,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +91,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,5 +104,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerConditionsExcludesNode(module=preserve).trace.json b/tests/baselines/reference/bundlerConditionsExcludesNode(module=preserve).trace.json index 0e5cd2eb567dc..f168eca1e4486 100644 --- a/tests/baselines/reference/bundlerConditionsExcludesNode(module=preserve).trace.json +++ b/tests/baselines/reference/bundlerConditionsExcludesNode(module=preserve).trace.json @@ -1,11 +1,14 @@ [ + "Found 'package.json' at '/node_modules/conditions/package.json'.", + "File '/node_modules/conditions/package.json' exists according to earlier cached lookups.", + "File '/package.json' does not exist.", "======== Resolving module 'conditions' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/conditions/package.json'.", + "File '/node_modules/conditions/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Saw non-matching condition 'node'.", "Matched 'exports' condition 'default'.", @@ -18,6 +21,8 @@ "Exiting conditional exports.", "Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'.", "======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/index.web.d.ts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +35,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +63,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +77,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +91,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,5 +104,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerDirectoryModule(moduleresolution=bundler).trace.json b/tests/baselines/reference/bundlerDirectoryModule(moduleresolution=bundler).trace.json index e67efed2af66b..6a9e7816773e6 100644 --- a/tests/baselines/reference/bundlerDirectoryModule(moduleresolution=bundler).trace.json +++ b/tests/baselines/reference/bundlerDirectoryModule(moduleresolution=bundler).trace.json @@ -1,7 +1,9 @@ [ + "File '/app/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '../lib' from '/app/test.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'import', 'types'.", + "Resolving in CJS mode with conditions 'require', 'types'.", "Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration, JSON.", "File '/lib.ts' does not exist.", "File '/lib.tsx' does not exist.", @@ -18,6 +20,10 @@ "File '/lib/cjs/index.tsx' does not exist.", "File '/lib/cjs/index.d.ts' exists - use it as a name resolution result.", "======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ========", + "File '/lib/cjs/package.json' does not exist.", + "File '/lib/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +37,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +52,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +67,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +82,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +97,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -96,6 +112,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -109,6 +127,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +142,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -135,6 +157,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -148,6 +172,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -161,6 +187,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -174,6 +202,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -187,6 +217,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -200,6 +232,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -213,6 +247,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -226,6 +262,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -239,6 +277,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -252,6 +292,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -265,6 +307,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -278,6 +322,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -291,6 +337,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -304,6 +352,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -317,6 +367,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -330,6 +382,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -343,6 +397,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -356,6 +412,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -369,6 +427,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -382,6 +442,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -395,6 +457,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -408,6 +472,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -421,6 +487,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -434,6 +502,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -447,6 +517,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -460,6 +532,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -473,6 +547,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -486,6 +562,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -499,6 +577,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -512,6 +592,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -525,6 +607,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -538,6 +622,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -551,6 +637,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -564,6 +652,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -577,6 +667,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -590,6 +682,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -603,6 +697,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -616,6 +712,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -629,6 +727,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -642,6 +742,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -655,6 +757,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -668,6 +772,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -681,6 +787,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -694,6 +802,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -707,6 +817,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -720,6 +832,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -733,6 +847,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -746,6 +862,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -759,6 +877,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -772,6 +892,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -785,6 +907,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -798,6 +922,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -811,6 +937,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -824,6 +952,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -837,6 +967,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -850,6 +982,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -863,6 +997,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -876,6 +1012,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -889,6 +1027,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -902,6 +1042,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -915,6 +1057,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -928,6 +1072,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -941,6 +1087,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -954,6 +1102,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -967,6 +1117,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -980,6 +1132,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -992,5 +1146,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json index 3ae9198b3782d..ac875c75ce478 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json @@ -1,4 +1,25 @@ [ + "File '/project/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/d/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", @@ -69,7 +90,7 @@ "File '/project/d.d.ts' does not exist.", "File '/project/d.js' does not exist.", "File '/project/d.jsx' does not exist.", - "File '/project/d/package.json' does not exist.", + "File '/project/d/package.json' does not exist according to earlier cached lookups.", "File '/project/d/index.ts' exists - use it as a name resolution result.", "======== Module name './d' was successfully resolved to '/project/d/index.ts'. ========", "======== Resolving module './d/index' from '/project/main.ts'. ========", @@ -99,6 +120,8 @@ "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exists - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", "Resolution for module './a.ts' was found in cache from location '/project'.", "======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ========", @@ -109,6 +132,8 @@ "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", "File '/project/a.ts' exists - use it as a name resolution result.", "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +147,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -135,6 +162,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -148,6 +177,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -161,6 +192,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -174,6 +207,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -186,5 +221,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json index 3ae9198b3782d..ac875c75ce478 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json @@ -1,4 +1,25 @@ [ + "File '/project/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/d/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", @@ -69,7 +90,7 @@ "File '/project/d.d.ts' does not exist.", "File '/project/d.js' does not exist.", "File '/project/d.jsx' does not exist.", - "File '/project/d/package.json' does not exist.", + "File '/project/d/package.json' does not exist according to earlier cached lookups.", "File '/project/d/index.ts' exists - use it as a name resolution result.", "======== Module name './d' was successfully resolved to '/project/d/index.ts'. ========", "======== Resolving module './d/index' from '/project/main.ts'. ========", @@ -99,6 +120,8 @@ "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exists - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", "Resolution for module './a.ts' was found in cache from location '/project'.", "======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ========", @@ -109,6 +132,8 @@ "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", "File '/project/a.ts' exists - use it as a name resolution result.", "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +147,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -135,6 +162,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -148,6 +177,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -161,6 +192,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -174,6 +207,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -186,5 +221,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json index 3ae9198b3782d..ac875c75ce478 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json @@ -1,4 +1,25 @@ [ + "File '/project/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/d/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", @@ -69,7 +90,7 @@ "File '/project/d.d.ts' does not exist.", "File '/project/d.js' does not exist.", "File '/project/d.jsx' does not exist.", - "File '/project/d/package.json' does not exist.", + "File '/project/d/package.json' does not exist according to earlier cached lookups.", "File '/project/d/index.ts' exists - use it as a name resolution result.", "======== Module name './d' was successfully resolved to '/project/d/index.ts'. ========", "======== Resolving module './d/index' from '/project/main.ts'. ========", @@ -99,6 +120,8 @@ "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exists - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", "Resolution for module './a.ts' was found in cache from location '/project'.", "======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ========", @@ -109,6 +132,8 @@ "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", "File '/project/a.ts' exists - use it as a name resolution result.", "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +147,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -135,6 +162,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -148,6 +177,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -161,6 +192,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -174,6 +207,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -186,5 +221,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json index 3ae9198b3782d..ac875c75ce478 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json @@ -1,4 +1,25 @@ [ + "File '/project/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/d/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", @@ -69,7 +90,7 @@ "File '/project/d.d.ts' does not exist.", "File '/project/d.js' does not exist.", "File '/project/d.jsx' does not exist.", - "File '/project/d/package.json' does not exist.", + "File '/project/d/package.json' does not exist according to earlier cached lookups.", "File '/project/d/index.ts' exists - use it as a name resolution result.", "======== Module name './d' was successfully resolved to '/project/d/index.ts'. ========", "======== Resolving module './d/index' from '/project/main.ts'. ========", @@ -99,6 +120,8 @@ "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exists - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", "Resolution for module './a.ts' was found in cache from location '/project'.", "======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ========", @@ -109,6 +132,8 @@ "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", "File '/project/a.ts' exists - use it as a name resolution result.", "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +147,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -135,6 +162,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -148,6 +177,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -161,6 +192,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -174,6 +207,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -186,5 +221,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerNodeModules1(module=esnext).trace.json b/tests/baselines/reference/bundlerNodeModules1(module=esnext).trace.json index b6d35e104cdf6..069183df611fa 100644 --- a/tests/baselines/reference/bundlerNodeModules1(module=esnext).trace.json +++ b/tests/baselines/reference/bundlerNodeModules1(module=esnext).trace.json @@ -1,11 +1,13 @@ [ + "Found 'package.json' at '/node_modules/dual/package.json'.", + "File '/package.json' does not exist.", "======== Resolving module 'dual' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/dual/package.json'.", + "File '/node_modules/dual/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Matched 'exports' condition 'import'.", "Using 'exports' subpath '.' with target './index.js'.", @@ -21,8 +23,25 @@ "Resolution for module 'dual' was found in cache from location '/'.", "======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ========", "======== Resolving module 'dual' from '/main.cts'. ========", - "Resolution for module 'dual' was found in cache from location '/'.", - "======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ========", + "Explicitly specified module resolution kind: 'Bundler'.", + "Resolving in CJS mode with conditions 'require', 'types'.", + "File '/package.json' does not exist according to earlier cached lookups.", + "Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", + "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", + "File '/node_modules/dual/package.json' exists according to earlier cached lookups.", + "Entering conditional exports.", + "Saw non-matching condition 'import'.", + "Matched 'exports' condition 'require'.", + "Using 'exports' subpath '.' with target './index.cjs'.", + "File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it.", + "File '/node_modules/dual/index.cts' does not exist.", + "File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result.", + "Resolved under condition 'require'.", + "Exiting conditional exports.", + "Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'.", + "======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual/index.d.cts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -35,6 +54,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +82,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +96,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +110,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +123,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerNodeModules1(module=preserve).trace.json b/tests/baselines/reference/bundlerNodeModules1(module=preserve).trace.json index b6d35e104cdf6..069183df611fa 100644 --- a/tests/baselines/reference/bundlerNodeModules1(module=preserve).trace.json +++ b/tests/baselines/reference/bundlerNodeModules1(module=preserve).trace.json @@ -1,11 +1,13 @@ [ + "Found 'package.json' at '/node_modules/dual/package.json'.", + "File '/package.json' does not exist.", "======== Resolving module 'dual' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/dual/package.json'.", + "File '/node_modules/dual/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Matched 'exports' condition 'import'.", "Using 'exports' subpath '.' with target './index.js'.", @@ -21,8 +23,25 @@ "Resolution for module 'dual' was found in cache from location '/'.", "======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ========", "======== Resolving module 'dual' from '/main.cts'. ========", - "Resolution for module 'dual' was found in cache from location '/'.", - "======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ========", + "Explicitly specified module resolution kind: 'Bundler'.", + "Resolving in CJS mode with conditions 'require', 'types'.", + "File '/package.json' does not exist according to earlier cached lookups.", + "Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", + "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", + "File '/node_modules/dual/package.json' exists according to earlier cached lookups.", + "Entering conditional exports.", + "Saw non-matching condition 'import'.", + "Matched 'exports' condition 'require'.", + "Using 'exports' subpath '.' with target './index.cjs'.", + "File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it.", + "File '/node_modules/dual/index.cts' does not exist.", + "File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result.", + "Resolved under condition 'require'.", + "Exiting conditional exports.", + "Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'.", + "======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual/index.d.cts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -35,6 +54,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +82,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +96,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +110,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +123,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerRelative1(module=esnext).trace.json b/tests/baselines/reference/bundlerRelative1(module=esnext).trace.json index 7cc32c65d7ea1..32e88ac669665 100644 --- a/tests/baselines/reference/bundlerRelative1(module=esnext).trace.json +++ b/tests/baselines/reference/bundlerRelative1(module=esnext).trace.json @@ -1,4 +1,13 @@ [ + "File '/dir/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/foo/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './dir' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", @@ -8,7 +17,7 @@ "File '/dir.d.ts' does not exist.", "File '/dir.js' does not exist.", "File '/dir.jsx' does not exist.", - "File '/dir/package.json' does not exist.", + "File '/dir/package.json' does not exist according to earlier cached lookups.", "File '/dir/index.ts' exists - use it as a name resolution result.", "======== Module name './dir' was successfully resolved to '/dir/index.ts'. ========", "======== Resolving module './dir/index' from '/main.ts'. ========", @@ -80,6 +89,8 @@ "File '/types/cjs.tsx' does not exist.", "File '/types/cjs.d.ts' exists - use it as a name resolution result.", "======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +104,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,6 +119,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +134,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -132,6 +149,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -145,6 +164,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -157,5 +178,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerRelative1(module=preserve).trace.json b/tests/baselines/reference/bundlerRelative1(module=preserve).trace.json index 7cc32c65d7ea1..32e88ac669665 100644 --- a/tests/baselines/reference/bundlerRelative1(module=preserve).trace.json +++ b/tests/baselines/reference/bundlerRelative1(module=preserve).trace.json @@ -1,4 +1,13 @@ [ + "File '/dir/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/foo/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './dir' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", @@ -8,7 +17,7 @@ "File '/dir.d.ts' does not exist.", "File '/dir.js' does not exist.", "File '/dir.jsx' does not exist.", - "File '/dir/package.json' does not exist.", + "File '/dir/package.json' does not exist according to earlier cached lookups.", "File '/dir/index.ts' exists - use it as a name resolution result.", "======== Module name './dir' was successfully resolved to '/dir/index.ts'. ========", "======== Resolving module './dir/index' from '/main.ts'. ========", @@ -80,6 +89,8 @@ "File '/types/cjs.tsx' does not exist.", "File '/types/cjs.d.ts' exists - use it as a name resolution result.", "======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +104,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,6 +119,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +134,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -132,6 +149,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -145,6 +164,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -157,5 +178,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cacheResolutions.trace.json b/tests/baselines/reference/cacheResolutions.trace.json index 3223d232e2b3f..b21bd7a2d6b67 100644 --- a/tests/baselines/reference/cacheResolutions.trace.json +++ b/tests/baselines/reference/cacheResolutions.trace.json @@ -1,4 +1,8 @@ [ + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'tslib' from '/a/b/c/app.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "File '/a/b/c/tslib.ts' does not exist.", @@ -27,12 +31,22 @@ "File '/tslib.js' does not exist.", "File '/tslib.jsx' does not exist.", "======== Module name 'tslib' was not resolved. ========", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'tslib' from '/a/b/c/lib1.ts'. ========", "Resolution for module 'tslib' was found in cache from location '/a/b/c'.", "======== Module name 'tslib' was not resolved. ========", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'tslib' from '/a/b/c/lib2.ts'. ========", "Resolution for module 'tslib' was found in cache from location '/a/b/c'.", "======== Module name 'tslib' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +60,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +75,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +90,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -85,6 +105,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +120,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,5 +134,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution1.trace.json b/tests/baselines/reference/cachedModuleResolution1.trace.json index e0abb568e03c2..4b74ccac8565f 100644 --- a/tests/baselines/reference/cachedModuleResolution1.trace.json +++ b/tests/baselines/reference/cachedModuleResolution1.trace.json @@ -1,4 +1,14 @@ [ + "File '/a/b/node_modules/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -11,12 +21,18 @@ "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +46,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +61,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +91,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -82,6 +106,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +120,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution2.trace.json b/tests/baselines/reference/cachedModuleResolution2.trace.json index af31f721e8747..8b98f408af75a 100644 --- a/tests/baselines/reference/cachedModuleResolution2.trace.json +++ b/tests/baselines/reference/cachedModuleResolution2.trace.json @@ -1,4 +1,12 @@ [ + "File '/a/b/node_modules/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -9,6 +17,12 @@ "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -17,6 +31,8 @@ "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +46,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +61,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +91,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -82,6 +106,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +120,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution3.trace.json b/tests/baselines/reference/cachedModuleResolution3.trace.json index 2d47c539debd3..0cbbc3010d528 100644 --- a/tests/baselines/reference/cachedModuleResolution3.trace.json +++ b/tests/baselines/reference/cachedModuleResolution3.trace.json @@ -1,4 +1,13 @@ [ + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File '/a/b/c/d/e/foo.ts' does not exist.", @@ -14,10 +23,16 @@ "File '/a/b/foo.tsx' does not exist.", "File '/a/b/foo.d.ts' exists - use it as a name resolution result.", "======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ========", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +46,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +61,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +91,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +106,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,5 +120,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution4.trace.json b/tests/baselines/reference/cachedModuleResolution4.trace.json index 6880a4175b515..b76ed12bb5b23 100644 --- a/tests/baselines/reference/cachedModuleResolution4.trace.json +++ b/tests/baselines/reference/cachedModuleResolution4.trace.json @@ -1,4 +1,11 @@ [ + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File '/a/b/c/foo.ts' does not exist.", @@ -8,6 +15,12 @@ "File '/a/b/foo.tsx' does not exist.", "File '/a/b/foo.d.ts' exists - use it as a name resolution result.", "======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ========", + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File '/a/b/c/d/e/foo.ts' does not exist.", @@ -18,6 +31,8 @@ "File '/a/b/c/d/foo.d.ts' does not exist.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +46,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +61,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +91,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +106,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,5 +120,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution5.trace.json b/tests/baselines/reference/cachedModuleResolution5.trace.json index 897fc3aa4c3ad..de14291c11773 100644 --- a/tests/baselines/reference/cachedModuleResolution5.trace.json +++ b/tests/baselines/reference/cachedModuleResolution5.trace.json @@ -1,4 +1,14 @@ [ + "File '/a/b/node_modules/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -11,12 +21,17 @@ "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/lib.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Resolution for module 'foo' was found in cache from location '/a/b'.", "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +45,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +60,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +75,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +90,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -82,6 +105,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +119,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution6.trace.json b/tests/baselines/reference/cachedModuleResolution6.trace.json index 4c07ac4bd05b1..11abe338c747b 100644 --- a/tests/baselines/reference/cachedModuleResolution6.trace.json +++ b/tests/baselines/reference/cachedModuleResolution6.trace.json @@ -1,4 +1,10 @@ [ + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -18,12 +24,18 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +49,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +64,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,6 +79,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,6 +94,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,6 +109,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -101,5 +123,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution7.trace.json b/tests/baselines/reference/cachedModuleResolution7.trace.json index f116d34c6905a..8778558fb9361 100644 --- a/tests/baselines/reference/cachedModuleResolution7.trace.json +++ b/tests/baselines/reference/cachedModuleResolution7.trace.json @@ -1,4 +1,8 @@ [ + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -14,6 +18,12 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========", + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +32,8 @@ "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -35,6 +47,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -48,6 +62,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +77,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,6 +92,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,6 +107,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -99,5 +121,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution8.trace.json b/tests/baselines/reference/cachedModuleResolution8.trace.json index b74e44890d3ee..5743a15f4f37a 100644 --- a/tests/baselines/reference/cachedModuleResolution8.trace.json +++ b/tests/baselines/reference/cachedModuleResolution8.trace.json @@ -1,4 +1,10 @@ [ + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File '/a/b/c/d/e/foo.ts' does not exist.", @@ -39,10 +45,16 @@ "File '/foo.js' does not exist.", "File '/foo.jsx' does not exist.", "======== Module name 'foo' was not resolved. ========", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +68,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +83,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -82,6 +98,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +113,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -108,6 +128,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -120,5 +142,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/cachedModuleResolution9.trace.json b/tests/baselines/reference/cachedModuleResolution9.trace.json index b0daccb405fe1..5da05b8608ab7 100644 --- a/tests/baselines/reference/cachedModuleResolution9.trace.json +++ b/tests/baselines/reference/cachedModuleResolution9.trace.json @@ -1,4 +1,8 @@ [ + "File '/a/b/c/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File '/a/b/c/foo.ts' does not exist.", @@ -27,6 +31,12 @@ "File '/foo.js' does not exist.", "File '/foo.jsx' does not exist.", "======== Module name 'foo' was not resolved. ========", + "File '/a/b/c/d/e/package.json' does not exist.", + "File '/a/b/c/d/package.json' does not exist.", + "File '/a/b/c/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File '/a/b/c/d/e/foo.ts' does not exist.", @@ -37,6 +47,8 @@ "File '/a/b/c/d/foo.d.ts' does not exist.", "Resolution for module 'foo' was found in cache from location '/a/b/c'.", "======== Module name 'foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +62,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,6 +77,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,6 +92,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,6 +107,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -102,6 +122,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -114,5 +136,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json b/tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json index 6d14798319a36..7b710c26e3c5f 100644 --- a/tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json +++ b/tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json @@ -1,11 +1,13 @@ [ + "File '/node_modules/dep/dist/package.json' does not exist.", + "Found 'package.json' at '/node_modules/dep/package.json'.", "======== Resolving module 'dep' from '/index.mts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", "File '/package.json' does not exist.", "Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/dep/package.json'.", + "File '/node_modules/dep/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Matched 'exports' condition 'import'.", "Using 'exports' subpath '.' with target './dist/index.mjs'.", @@ -21,6 +23,8 @@ "Exiting conditional exports.", "Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'.", "======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/index.d.ts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -33,6 +37,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +51,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +65,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +79,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +93,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -92,5 +106,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json index f84220f787e64..0814854b2b468 100644 --- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json +++ b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json @@ -1,11 +1,15 @@ [ + "Found 'package.json' at '/node_modules/lodash/package.json'.", + "File '/node_modules/lodash/package.json' exists according to earlier cached lookups.", + "File '/node_modules/lodash/package.json' exists according to earlier cached lookups.", + "File '/package.json' does not exist.", "======== Resolving module 'lodash' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types', 'webpack', ' browser'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/lodash/package.json'.", + "File '/node_modules/lodash/package.json' exists according to earlier cached lookups.", "File '/node_modules/lodash.ts' does not exist.", "File '/node_modules/lodash.tsx' does not exist.", "File '/node_modules/lodash.d.ts' does not exist.", @@ -19,6 +23,8 @@ "File '/node_modules/lodash/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/lodash/index.d.ts', result '/node_modules/lodash/index.d.ts'.", "======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash/index.d.ts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +37,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +51,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +65,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,6 +79,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,6 +93,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -90,5 +106,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).trace.json b/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).trace.json index 2e3c96ac715fc..beb52b3e40d32 100644 --- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).trace.json +++ b/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).trace.json @@ -1,11 +1,15 @@ [ + "Found 'package.json' at '/node_modules/lodash/package.json'.", + "File '/node_modules/lodash/package.json' exists according to earlier cached lookups.", + "File '/node_modules/lodash/package.json' exists according to earlier cached lookups.", + "File '/package.json' does not exist.", "======== Resolving module 'lodash' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types', 'webpack', ' browser'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/lodash/package.json'.", + "File '/node_modules/lodash/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Saw non-matching condition 'browser'.", "Matched 'exports' condition 'webpack'.", @@ -18,6 +22,8 @@ "Exiting conditional exports.", "Resolving real path for '/node_modules/lodash/webpack.d.ts', result '/node_modules/lodash/webpack.d.ts'.", "======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/webpack.d.ts' with Package ID 'lodash/webpack.d.ts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +36,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +50,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +64,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +78,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +92,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,5 +105,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json index 4db5bb2faeae0..033d2bb78be0b 100644 --- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json +++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/use' from '/index.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -23,6 +24,7 @@ "File '/node_modules/a/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'.", "======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ========", + "File '/node_modules/foo/package.json' exists according to earlier cached lookups.", "======== Resolving module './index' from '/node_modules/foo/use.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, Declaration.", @@ -31,6 +33,10 @@ "File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result.", "File '/node_modules/foo/package.json' exists according to earlier cached lookups.", "======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ========", + "File '/node_modules/foo/package.json' exists according to earlier cached lookups.", + "File '/node_modules/a/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/node_modules/a/index.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -48,6 +54,9 @@ "File '/node_modules/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/a/node_modules/foo/index.d.ts', result '/node_modules/a/node_modules/foo/index.d.ts'.", "======== Module name 'foo' was successfully resolved to '/node_modules/a/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ========", + "File '/node_modules/a/node_modules/foo/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -60,6 +69,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +83,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,6 +97,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -96,6 +111,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -108,6 +125,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,5 +138,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json index 7441c3d6fcac8..a87452de89169 100644 --- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json +++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module '@foo/bar/use' from '/index.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -23,6 +24,7 @@ "File '/node_modules/a/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'.", "======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ========", + "File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.", "======== Resolving module './index' from '/node_modules/@foo/bar/use.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, Declaration.", @@ -31,6 +33,10 @@ "File '/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result.", "File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.", "======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ========", + "File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.", + "File '/node_modules/a/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@foo/bar' from '/node_modules/a/index.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -48,6 +54,9 @@ "File '/node_modules/a/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/a/node_modules/@foo/bar/index.d.ts', result '/node_modules/a/node_modules/@foo/bar/index.d.ts'.", "======== Module name '@foo/bar' was successfully resolved to '/node_modules/a/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ========", + "File '/node_modules/a/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -60,6 +69,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +83,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,6 +97,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -96,6 +111,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -108,6 +125,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,5 +138,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/globalAugmentationModuleResolution.trace.json b/tests/baselines/reference/globalAugmentationModuleResolution.trace.json index 9092829302e64..e85c20b4bfde2 100644 --- a/tests/baselines/reference/globalAugmentationModuleResolution.trace.json +++ b/tests/baselines/reference/globalAugmentationModuleResolution.trace.json @@ -1,4 +1,8 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +16,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +31,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -38,6 +46,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +61,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,5 +90,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/importWithTrailingSlash.trace.json b/tests/baselines/reference/importWithTrailingSlash.trace.json index 175ef9b3d66a1..a3071adb553da 100644 --- a/tests/baselines/reference/importWithTrailingSlash.trace.json +++ b/tests/baselines/reference/importWithTrailingSlash.trace.json @@ -1,8 +1,13 @@ [ + "File '/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '.' from '/a/test.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.", - "File '/a/package.json' does not exist.", + "File '/a/package.json' does not exist according to earlier cached lookups.", "File '/a/index.ts' exists - use it as a name resolution result.", "======== Module name '.' was successfully resolved to '/a/index.ts'. ========", "======== Resolving module './' from '/a/test.ts'. ========", @@ -11,6 +16,9 @@ "File '/a/package.json' does not exist according to earlier cached lookups.", "File '/a/index.ts' exists - use it as a name resolution result.", "======== Module name './' was successfully resolved to '/a/index.ts'. ========", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '..' from '/a/b/test.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration.", @@ -23,6 +31,8 @@ "File '/a/package.json' does not exist according to earlier cached lookups.", "File '/a/index.ts' exists - use it as a name resolution result.", "======== Module name '../' was successfully resolved to '/a/index.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +46,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +61,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,6 +91,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -88,6 +106,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -100,5 +120,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json b/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json index 1dde7eb385678..054f5da2a9856 100644 --- a/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json +++ b/tests/baselines/reference/importWithTrailingSlash_noResolve.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo/' from '/a.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, Declaration.", @@ -6,6 +7,8 @@ "Loading module as file / folder, candidate module location '/foo/', target file types: JavaScript.", "Directory '/foo/' does not exist, skipping all lookups in it.", "======== Module name './foo/' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +22,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +37,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +52,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +67,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +82,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,5 +96,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/jsdocInTypeScript.trace.json b/tests/baselines/reference/jsdocInTypeScript.trace.json index 20d11f3ea7f87..edb4f9e328e03 100644 --- a/tests/baselines/reference/jsdocInTypeScript.trace.json +++ b/tests/baselines/reference/jsdocInTypeScript.trace.json @@ -1,4 +1,6 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +14,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +29,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -38,6 +44,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +59,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +74,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +89,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -90,6 +104,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -103,6 +119,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -116,6 +134,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -129,6 +149,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -142,6 +164,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -155,6 +179,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -167,5 +193,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========" + "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json b/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json index cda94c2befb65..a265627564b85 100644 --- a/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json +++ b/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json @@ -1,11 +1,17 @@ [ + "File '/node_modules/@typescript/lib-dom/package.json' does not exist.", + "File '/node_modules/@typescript/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Scoped package detected, looking in 'typescript__lib-dom'", - "File '/node_modules/@typescript/lib-dom/package.json' does not exist.", + "File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.", "File '/node_modules/@typescript/lib-dom.ts' does not exist.", "File '/node_modules/@typescript/lib-dom.tsx' does not exist.", "File '/node_modules/@typescript/lib-dom.d.ts' does not exist.", @@ -14,6 +20,8 @@ "File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@typescript/lib-dom/index.d.ts', result '/node_modules/@typescript/lib-dom/index.d.ts'.", "======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +39,8 @@ "File '/node_modules/@typescript/lib-es5.js' does not exist.", "File '/node_modules/@typescript/lib-es5.jsx' does not exist.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -48,6 +58,8 @@ "File '/node_modules/@typescript/lib-decorators.js' does not exist.", "File '/node_modules/@typescript/lib-decorators.jsx' does not exist.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -60,6 +72,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +86,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -88,5 +104,7 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "File '/node_modules/@typescript/lib-scripthost.js' does not exist.", "File '/node_modules/@typescript/lib-scripthost.jsx' does not exist.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json b/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json index 8edd966941288..1a05dc5279c45 100644 --- a/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json +++ b/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json @@ -1,4 +1,6 @@ [ + "File '/somepath/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +14,13 @@ "File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'.", "======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ========", + "File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.", + "File '/somepath/node_modules/@typescript/package.json' does not exist.", + "File '/somepath/node_modules/package.json' does not exist.", + "File '/somepath/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +38,8 @@ "File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +57,8 @@ "File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +71,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/somepath/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +85,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,5 +103,7 @@ "File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist.", "File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json b/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json index 306175b8fba2b..9043ad759d439 100644 --- a/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json +++ b/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json @@ -1,16 +1,28 @@ [ + "File '/node_modules/@typescript/lib-dom/package.json' does not exist.", + "File '/node_modules/@typescript/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Scoped package detected, looking in 'typescript__lib-dom/iterable'", - "File '/node_modules/@typescript/lib-dom/package.json' does not exist.", + "File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.", "File '/node_modules/@typescript/lib-dom/iterable.ts' does not exist.", "File '/node_modules/@typescript/lib-dom/iterable.tsx' does not exist.", "File '/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@typescript/lib-dom/iterable.d.ts', result '/node_modules/@typescript/lib-dom/iterable.d.ts'.", "======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/node_modules/@typescript/lib-dom/iterable.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -28,6 +40,8 @@ "File '/node_modules/@typescript/lib-es5.js' does not exist.", "File '/node_modules/@typescript/lib-es5.jsx' does not exist.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +59,8 @@ "File '/node_modules/@typescript/lib-decorators.js' does not exist.", "File '/node_modules/@typescript/lib-decorators.jsx' does not exist.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,6 +102,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -100,5 +120,7 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "File '/node_modules/@typescript/lib-scripthost.js' does not exist.", "File '/node_modules/@typescript/lib-scripthost.jsx' does not exist.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json b/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json index 042ae9b861666..551de29b705b0 100644 --- a/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json +++ b/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json @@ -1,4 +1,6 @@ [ + "File '/somepath/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-dom/iterable' from '/somepath/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -9,6 +11,13 @@ "File '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts', result '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'.", "======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. ========", + "File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.", + "File '/somepath/node_modules/@typescript/package.json' does not exist.", + "File '/somepath/node_modules/package.json' does not exist.", + "File '/somepath/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +35,8 @@ "File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +54,8 @@ "File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +83,11 @@ "File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'.", "======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ========", + "File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.", + "File '/somepath/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.", + "File '/somepath/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/somepath/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/somepath/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,6 +100,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -96,5 +118,7 @@ "File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist.", "File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-1.trace.json b/tests/baselines/reference/library-reference-1.trace.json index 80f8b8e4ab270..2661687218fd5 100644 --- a/tests/baselines/reference/library-reference-1.trace.json +++ b/tests/baselines/reference/library-reference-1.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/src/types'. ========", "Resolving with primary search path '/src/types'.", "File '/src/types/jquery.d.ts' does not exist.", @@ -6,6 +8,10 @@ "File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ========", + "File '/src/types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/src/types/package.json' does not exist.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/src/types'. ========", "Resolving with primary search path '/src/types'.", "File '/src/types/jquery.d.ts' does not exist.", @@ -13,6 +19,8 @@ "File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +34,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +49,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +64,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,6 +79,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +94,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -90,5 +108,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-10.trace.json b/tests/baselines/reference/library-reference-10.trace.json index 937099add14b8..59a6af6907e31 100644 --- a/tests/baselines/reference/library-reference-10.trace.json +++ b/tests/baselines/reference/library-reference-10.trace.json @@ -1,4 +1,6 @@ [ + "File '/foo/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/foo/consumer.ts', root directory '/foo/types'. ========", "Resolving with primary search path '/foo/types'.", "File '/foo/types/jquery.d.ts' does not exist.", @@ -8,6 +10,7 @@ "File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ========", + "File '/foo/types/jquery/package.json' exists according to earlier cached lookups.", "======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/foo/types'. ========", "Resolving with primary search path '/foo/types'.", "File '/foo/types/jquery.d.ts' does not exist.", @@ -16,6 +19,8 @@ "File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +34,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +49,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +64,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +79,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +94,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,5 +108,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-11.trace.json b/tests/baselines/reference/library-reference-11.trace.json index db45efcb8ec0c..2257bbeb5ab5e 100644 --- a/tests/baselines/reference/library-reference-11.trace.json +++ b/tests/baselines/reference/library-reference-11.trace.json @@ -1,4 +1,7 @@ [ + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/a/b/consumer.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", @@ -12,6 +15,9 @@ "File '/a/node_modules/jquery/jquery.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/node_modules/jquery/jquery.d.ts', result '/a/node_modules/jquery/jquery.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/jquery.d.ts', primary: false. ========", + "File '/a/node_modules/jquery/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +28,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +40,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +52,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +64,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,5 +87,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-12.trace.json b/tests/baselines/reference/library-reference-12.trace.json index 713d17764d985..4a46664132c25 100644 --- a/tests/baselines/reference/library-reference-12.trace.json +++ b/tests/baselines/reference/library-reference-12.trace.json @@ -1,4 +1,7 @@ [ + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/a/b/consumer.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", @@ -13,6 +16,10 @@ "File '/a/node_modules/jquery/dist/jquery.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/node_modules/jquery/dist/jquery.d.ts', result '/a/node_modules/jquery/dist/jquery.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/dist/jquery.d.ts', primary: false. ========", + "File '/a/node_modules/jquery/dist/package.json' does not exist.", + "File '/a/node_modules/jquery/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -23,6 +30,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -33,6 +42,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +54,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -53,6 +66,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,6 +78,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,5 +89,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-13.trace.json b/tests/baselines/reference/library-reference-13.trace.json index 9038d8c571259..7e3caab4f0997 100644 --- a/tests/baselines/reference/library-reference-13.trace.json +++ b/tests/baselines/reference/library-reference-13.trace.json @@ -1,11 +1,20 @@ [ + "File '/a/types/jquery/package.json' does not exist.", + "File '/a/types/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'jquery', containing file '/a/__inferred type names__.ts', root directory '/a/types'. ========", "Resolving with primary search path '/a/types'.", "File '/a/types/jquery.d.ts' does not exist.", - "File '/a/types/jquery/package.json' does not exist.", + "File '/a/types/jquery/package.json' does not exist according to earlier cached lookups.", "File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/a/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +28,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/a/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +43,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/a/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +58,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/a/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +73,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/a/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +88,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/a/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,5 +102,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-14.trace.json b/tests/baselines/reference/library-reference-14.trace.json index 9038d8c571259..48bbd7a6e139b 100644 --- a/tests/baselines/reference/library-reference-14.trace.json +++ b/tests/baselines/reference/library-reference-14.trace.json @@ -1,4 +1,7 @@ [ + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/a/__inferred type names__.ts', root directory '/a/types'. ========", "Resolving with primary search path '/a/types'.", "File '/a/types/jquery.d.ts' does not exist.", @@ -6,6 +9,12 @@ "File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ========", + "File '/a/types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/a/types/package.json' does not exist.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/a/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +28,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/a/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +43,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/a/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +58,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/a/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +73,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/a/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +88,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/a/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,5 +102,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-15.trace.json b/tests/baselines/reference/library-reference-15.trace.json index 81e40d2da598e..bcb7f815ecc3a 100644 --- a/tests/baselines/reference/library-reference-15.trace.json +++ b/tests/baselines/reference/library-reference-15.trace.json @@ -1,4 +1,7 @@ [ + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/a/types'. ========", "Resolving with primary search path '/a/types'.", "File '/a/types/jquery.d.ts' does not exist.", @@ -6,6 +9,12 @@ "File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ========", + "File '/a/types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/a/types/package.json' does not exist.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +28,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +43,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +58,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +73,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +88,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,5 +102,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-2.trace.json b/tests/baselines/reference/library-reference-2.trace.json index efcd611af477b..2794516b51398 100644 --- a/tests/baselines/reference/library-reference-2.trace.json +++ b/tests/baselines/reference/library-reference-2.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/consumer.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/jquery.d.ts' does not exist.", @@ -9,6 +10,7 @@ "File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/jquery/jquery.d.ts', result '/types/jquery/jquery.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ========", + "File '/types/jquery/package.json' exists according to earlier cached lookups.", "======== Resolving type reference directive 'jquery', containing file '/test/__inferred type names__.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/jquery.d.ts' does not exist.", @@ -18,6 +20,8 @@ "File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/jquery/jquery.d.ts', result '/types/jquery/jquery.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/test/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +35,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/test/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +50,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/test/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +65,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/test/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +80,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/test/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +95,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/test/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,5 +109,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-3.trace.json b/tests/baselines/reference/library-reference-3.trace.json index f4d640e4aadc9..a3421d313e456 100644 --- a/tests/baselines/reference/library-reference-3.trace.json +++ b/tests/baselines/reference/library-reference-3.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/src/node_modules/@types,/node_modules/@types'. ========", "Resolving with primary search path '/src/node_modules/@types, /node_modules/@types'.", "Directory '/src/node_modules/@types' does not exist, skipping all lookups in it.", @@ -10,6 +12,12 @@ "File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ========", + "File '/src/node_modules/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/src/node_modules/package.json' does not exist.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +30,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +44,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +58,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +72,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +86,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,5 +99,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-4.trace.json b/tests/baselines/reference/library-reference-4.trace.json index bfaaf2b2cd065..9e5a5c07bdb1b 100644 --- a/tests/baselines/reference/library-reference-4.trace.json +++ b/tests/baselines/reference/library-reference-4.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/src'. ========", "Resolving with primary search path '/src'.", "File '/src/foo.d.ts' does not exist.", @@ -21,6 +23,9 @@ "File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'.", "======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========", + "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/src'. ========", "Resolving with primary search path '/src'.", "File '/src/alpha.d.ts' does not exist.", @@ -31,6 +36,14 @@ "File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'.", "======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========", + "File '/node_modules/foo/node_modules/alpha/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/foo/node_modules/package.json' does not exist.", + "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/bar/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/src'. ========", "Resolving with primary search path '/src'.", "File '/src/alpha.d.ts' does not exist.", @@ -41,6 +54,8 @@ "File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'.", "======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/test/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +71,8 @@ "Directory '/.src/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/test/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +88,8 @@ "Directory '/.src/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/test/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,6 +105,8 @@ "Directory '/.src/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/test/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -101,6 +122,8 @@ "Directory '/.src/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/test/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -116,6 +139,8 @@ "Directory '/.src/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/test/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -130,5 +155,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-5.trace.json b/tests/baselines/reference/library-reference-5.trace.json index 6c7738d6016b4..47d50c37a28ee 100644 --- a/tests/baselines/reference/library-reference-5.trace.json +++ b/tests/baselines/reference/library-reference-5.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "Directory '/types' does not exist, skipping all lookups in it.", @@ -21,6 +23,9 @@ "File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'.", "======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========", + "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "Directory '/types' does not exist, skipping all lookups in it.", @@ -31,6 +36,14 @@ "File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'.", "======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========", + "File '/node_modules/foo/node_modules/alpha/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/foo/node_modules/package.json' does not exist.", + "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/bar/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "Directory '/types' does not exist, skipping all lookups in it.", @@ -41,6 +54,8 @@ "File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'.", "======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +65,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +76,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +87,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +98,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,6 +109,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +119,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-6.trace.json b/tests/baselines/reference/library-reference-6.trace.json index b6882d645ef2d..41ffdab8de3f7 100644 --- a/tests/baselines/reference/library-reference-6.trace.json +++ b/tests/baselines/reference/library-reference-6.trace.json @@ -1,13 +1,21 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'alpha', containing file '/src/foo.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "File '/node_modules/@types/alpha/package.json' does not exist.", "File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'.", "======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ========", + "File '/node_modules/@types/alpha/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'alpha' was found in cache from location '/'.", "======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -17,6 +25,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +36,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +46,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +57,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +67,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,5 +77,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-7.trace.json b/tests/baselines/reference/library-reference-7.trace.json index 4ce6c684d7e3f..6d28106d43699 100644 --- a/tests/baselines/reference/library-reference-7.trace.json +++ b/tests/baselines/reference/library-reference-7.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", @@ -9,6 +11,12 @@ "File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ========", + "File '/src/node_modules/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/src/node_modules/package.json' does not exist.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +27,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +39,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +51,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +63,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +75,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,5 +86,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-8.trace.json b/tests/baselines/reference/library-reference-8.trace.json index 4eb78e10cb940..bc4976ce7a90f 100644 --- a/tests/baselines/reference/library-reference-8.trace.json +++ b/tests/baselines/reference/library-reference-8.trace.json @@ -1,4 +1,6 @@ [ + "File '/test/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'alpha', containing file '/test/foo.ts', root directory '/test/types'. ========", "Resolving with primary search path '/test/types'.", "File '/test/types/alpha.d.ts' does not exist.", @@ -13,6 +15,10 @@ "File '/test/types/beta/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'.", "======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ========", + "File '/test/types/alpha/package.json' does not exist according to earlier cached lookups.", + "File '/test/types/package.json' does not exist.", + "File '/test/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'beta', containing file '/test/types/alpha/index.d.ts', root directory '/test/types'. ========", "Resolving with primary search path '/test/types'.", "File '/test/types/beta.d.ts' does not exist.", @@ -20,6 +26,10 @@ "File '/test/types/beta/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'.", "======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ========", + "File '/test/types/beta/package.json' does not exist according to earlier cached lookups.", + "File '/test/types/package.json' does not exist according to earlier cached lookups.", + "File '/test/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'alpha', containing file '/test/types/beta/index.d.ts', root directory '/test/types'. ========", "Resolving with primary search path '/test/types'.", "File '/test/types/alpha.d.ts' does not exist.", @@ -33,6 +43,8 @@ "======== Resolving type reference directive 'beta', containing file '/test/__inferred type names__.ts'. ========", "Resolution for type reference directive 'beta' was found in cache from location '/test'.", "======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/test/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +58,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/test/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +73,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/test/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +88,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/test/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -85,6 +103,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/test/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +118,8 @@ "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/test/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,5 +132,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/test/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/library-reference-scoped-packages.trace.json b/tests/baselines/reference/library-reference-scoped-packages.trace.json index cf8cf7ca9c475..af77aecd92eff 100644 --- a/tests/baselines/reference/library-reference-scoped-packages.trace.json +++ b/tests/baselines/reference/library-reference-scoped-packages.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive '@beep/boop', containing file '/a.ts', root directory '/.src/types'. ========", "Resolving with primary search path '/.src/types'.", "Directory '/.src/types' does not exist, skipping all lookups in it.", @@ -10,6 +11,12 @@ "File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'.", "======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: false. ========", + "File '/node_modules/@types/beep__boop/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +29,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +43,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +56,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +70,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +83,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,5 +96,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json index a11d237333838..d9f47a736a97d 100644 --- a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json +++ b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json @@ -1,4 +1,7 @@ [ + "File '/typings/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'shortid' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +22,8 @@ "File '/node_modules/shortid/index.js' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/shortid/index.js', result '/node_modules/shortid/index.js'.", "======== Module name 'shortid' was successfully resolved to '/node_modules/shortid/index.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -28,6 +33,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +44,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +55,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +66,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +77,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,5 +87,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/modulePreserve2.trace.json b/tests/baselines/reference/modulePreserve2.trace.json index a61352c6987bb..406e188dcf219 100644 --- a/tests/baselines/reference/modulePreserve2.trace.json +++ b/tests/baselines/reference/modulePreserve2.trace.json @@ -1,8 +1,9 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'dep' from '/main.js'. ========", "Module resolution kind is not specified, using 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/dep/package.json'.", @@ -35,6 +36,9 @@ "Exiting conditional exports.", "Resolving real path for '/node_modules/dep/require.d.ts', result '/node_modules/dep/require.d.ts'.", "======== Module name 'dep' was successfully resolved to '/node_modules/dep/require.d.ts'. ========", + "File '/node_modules/dep/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +51,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +65,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +79,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +93,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +107,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +121,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +135,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -131,6 +149,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -143,6 +163,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -155,6 +177,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -167,6 +191,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -179,6 +205,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -191,6 +219,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -203,6 +233,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -215,6 +247,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -227,6 +261,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -239,6 +275,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -251,6 +289,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -263,6 +303,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -275,6 +317,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -287,6 +331,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -299,6 +345,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -311,6 +359,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -323,6 +373,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -335,6 +387,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -347,6 +401,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -359,6 +415,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -371,6 +429,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -383,6 +443,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -395,6 +457,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -407,6 +471,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -419,6 +485,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -431,6 +499,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -443,6 +513,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -455,6 +527,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -467,6 +541,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -479,6 +555,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -491,6 +569,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -503,6 +583,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -515,6 +597,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -527,6 +611,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -539,6 +625,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -551,6 +639,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -563,6 +653,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -575,6 +667,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -587,6 +681,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -599,6 +695,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -611,6 +709,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -623,6 +723,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -635,6 +737,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -647,6 +751,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -659,6 +765,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -671,6 +779,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -683,6 +793,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -695,6 +807,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -707,6 +821,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -719,6 +835,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -731,6 +849,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -743,6 +863,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -755,6 +877,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -767,6 +891,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -779,6 +905,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -791,6 +919,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -803,6 +933,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -815,6 +947,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -827,6 +961,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -839,6 +975,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -851,6 +989,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -863,6 +1003,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -875,6 +1017,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -887,6 +1031,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -899,6 +1045,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -911,6 +1059,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -923,6 +1073,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -934,5 +1086,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/modulePreserve3.trace.json b/tests/baselines/reference/modulePreserve3.trace.json index 9cf8a63b9832c..26a3f3176c907 100644 --- a/tests/baselines/reference/modulePreserve3.trace.json +++ b/tests/baselines/reference/modulePreserve3.trace.json @@ -1,11 +1,16 @@ [ + "File '/node_modules/@types/react/package.json' does not exist.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'react/jsx-runtime' from '/index.tsx'. ========", "Module resolution kind is not specified, using 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "File '/node_modules/@types/react/package.json' does not exist.", + "File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups.", "File '/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/react/jsx-runtime.d.ts', result '/node_modules/@types/react/jsx-runtime.d.ts'.", "======== Module name 'react/jsx-runtime' was successfully resolved to '/node_modules/@types/react/jsx-runtime.d.ts'. ========", @@ -22,6 +27,8 @@ "File '/node_modules/@types/react.d.ts' does not exist.", "File '/node_modules/@types/react/index.d.ts' does not exist.", "======== Type reference directive 'react' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +41,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +55,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +69,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +83,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -82,6 +97,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,6 +111,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,6 +125,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -118,6 +139,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -130,6 +153,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -142,6 +167,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -154,6 +181,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -166,6 +195,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -177,6 +208,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -188,6 +221,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -199,6 +234,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -210,6 +247,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -221,6 +260,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -232,6 +273,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -243,6 +286,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -254,6 +299,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -265,6 +312,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -276,6 +325,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -287,6 +338,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -298,6 +351,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -309,6 +364,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -320,6 +377,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -331,6 +390,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -342,6 +403,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -353,6 +416,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -364,6 +429,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -375,6 +442,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -386,6 +455,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -397,6 +468,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -408,6 +481,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -419,6 +494,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -430,6 +507,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -441,6 +520,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -452,6 +533,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -463,6 +546,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -474,6 +559,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -485,6 +572,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -496,6 +585,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -507,6 +598,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -518,6 +611,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -529,6 +624,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -540,6 +637,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -551,6 +650,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -562,6 +663,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -573,6 +676,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -584,6 +689,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -595,6 +702,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -606,6 +715,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -617,6 +728,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -628,6 +741,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -639,6 +754,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -650,6 +767,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -661,6 +780,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -672,6 +793,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -683,6 +806,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -694,6 +819,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -705,6 +832,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -716,6 +845,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -727,6 +858,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -738,6 +871,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -749,6 +884,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -760,6 +897,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -771,6 +910,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -782,6 +923,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -793,6 +936,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -804,6 +949,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -816,6 +963,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -827,6 +976,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -839,6 +990,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -850,6 +1003,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -860,5 +1015,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionAsTypeReferenceDirective.trace.json b/tests/baselines/reference/moduleResolutionAsTypeReferenceDirective.trace.json index e1d0c8913b873..ebd759838a048 100644 --- a/tests/baselines/reference/moduleResolutionAsTypeReferenceDirective.trace.json +++ b/tests/baselines/reference/moduleResolutionAsTypeReferenceDirective.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'phaser' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +13,8 @@ "File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'.", "======== Module name 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3'. ========", + "File '/typings/phaser/types/package.json' does not exist.", + "File '/typings/phaser/package.json' exists according to earlier cached lookups.", "======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ========", "Resolving with primary search path '/typings'.", "File '/typings/phaser.d.ts' does not exist.", @@ -21,6 +24,8 @@ "File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'.", "======== Type reference directive 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +36,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +48,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +60,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +72,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +84,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,5 +95,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json b/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json index e1d0c8913b873..ebd759838a048 100644 --- a/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json +++ b/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'phaser' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +13,8 @@ "File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'.", "======== Module name 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3'. ========", + "File '/typings/phaser/types/package.json' does not exist.", + "File '/typings/phaser/package.json' exists according to earlier cached lookups.", "======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ========", "Resolving with primary search path '/typings'.", "File '/typings/phaser.d.ts' does not exist.", @@ -21,6 +24,8 @@ "File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'.", "======== Type reference directive 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +36,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +48,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +60,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +72,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +84,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,5 +95,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json b/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json index ed79e4de039ff..c62975267eaf3 100644 --- a/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json +++ b/tests/baselines/reference/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module '@scoped/typescache' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +73,21 @@ "File '/a/node_modules/@types/mangled__attypescache/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/node_modules/@types/mangled__attypescache/index.d.ts', result '/a/node_modules/@types/mangled__attypescache/index.d.ts'.", "======== Module name '@mangled/attypescache' was successfully resolved to '/a/node_modules/@types/mangled__attypescache/index.d.ts'. ========", + "File '/a/types/@scoped/typescache/package.json' does not exist according to earlier cached lookups.", + "File '/a/types/@scoped/package.json' does not exist.", + "File '/a/types/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/a/node_modules/@scoped/nodemodulescache/package.json' does not exist according to earlier cached lookups.", + "File '/a/node_modules/@scoped/package.json' does not exist.", + "File '/a/node_modules/package.json' does not exist.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/a/node_modules/@types/mangled__attypescache/package.json' does not exist according to earlier cached lookups.", + "File '/a/node_modules/@types/package.json' does not exist.", + "File '/a/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'dummy', containing file '/__inferred type names__.ts', root directory '/a/types,/a/node_modules,/a/node_modules/@types'. ========", "Resolving with primary search path '/a/types, /a/node_modules, /a/node_modules/@types'.", "File '/a/types/dummy.d.ts' does not exist.", @@ -79,6 +95,12 @@ "File '/a/types/dummy/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/types/dummy/index.d.ts', result '/a/types/dummy/index.d.ts'.", "======== Type reference directive 'dummy' was successfully resolved to '/a/types/dummy/index.d.ts', primary: true. ========", + "File '/a/types/dummy/package.json' does not exist according to earlier cached lookups.", + "File '/a/types/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,6 +111,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -99,6 +123,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -109,6 +135,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +147,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -129,6 +159,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -138,5 +170,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json index 50672d6b77528..233e1c95249dc 100644 --- a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json +++ b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json @@ -1,4 +1,7 @@ [ + "File '/project/src/package.json' does not exist.", + "File '/project/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'anotherLib' from '/project/src/app.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'.", @@ -33,6 +36,10 @@ "File '/shared/lib/app.tsx' does not exist.", "File '/shared/lib/app.d.ts' exists - use it as a name resolution result.", "======== Module name '@shared/lib/app' was successfully resolved to '/shared/lib/app.d.ts'. ========", + "File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups.", + "File '/project/node_modules/package.json' does not exist.", + "File '/project/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'.", @@ -50,6 +57,8 @@ "File '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/project/node_modules/troublesome-lib/lib/Compactable.d.ts', result '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'.", "======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib/lib/Compactable.d.ts@1.17.1'. ========", + "File '/project/node_modules/troublesome-lib/lib/package.json' does not exist.", + "File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.", "======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, Declaration.", @@ -58,6 +67,11 @@ "File '/project/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result.", "File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.", "======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ========", + "File '/project/node_modules/troublesome-lib/lib/package.json' does not exist according to earlier cached lookups.", + "File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.", + "File '/shared/lib/package.json' does not exist.", + "File '/shared/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'.", @@ -75,6 +89,10 @@ "File '/shared/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/shared/node_modules/troublesome-lib/lib/Option.d.ts', result '/shared/node_modules/troublesome-lib/lib/Option.d.ts'.", "======== Module name 'troublesome-lib/lib/Option' was successfully resolved to '/shared/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ========", + "File '/shared/node_modules/troublesome-lib/lib/package.json' does not exist.", + "File '/shared/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/project/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,6 +105,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/project/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -99,6 +119,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/project/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -111,6 +133,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/project/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -123,6 +147,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/project/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -135,6 +161,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/project/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -146,5 +174,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions.trace.json index b2f074edc2056..e7c0c22df7f3c 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions.trace.json @@ -1,15 +1,25 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a' from '/src/b.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, Declaration.", "File '/src/a.ts' exists - use it as a name resolution result.", "======== Module name './a' was successfully resolved to '/src/a.ts'. ========", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './a.js' from '/src/d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, Declaration.", "File name '/src/a.js' has a '.js' extension - stripping it.", "File '/src/a.ts' exists - use it as a name resolution result.", "======== Module name './a.js' was successfully resolved to '/src/a.ts'. ========", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './jquery.js' from '/src/jquery_user_1.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, Declaration.", @@ -18,6 +28,8 @@ "File '/src/jquery.tsx' does not exist.", "File '/src/jquery.d.ts' exists - use it as a name resolution result.", "======== Module name './jquery.js' was successfully resolved to '/src/jquery.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +43,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +58,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +73,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +88,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +103,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,5 +117,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json index d019eb14cb9f1..bff9f94ba12b6 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './tsx' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, Declaration.", @@ -26,6 +27,8 @@ "Loading module as file / folder, candidate module location '/js', target file types: JavaScript.", "File '/js.js' exists - use it as a name resolution result.", "======== Module name './js' was successfully resolved to '/js.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +42,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +57,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,6 +72,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +87,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -91,6 +102,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -103,5 +116,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json index 2d98099a28f19..44d0ab3175945 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported2.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './jsx' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.", @@ -10,6 +11,8 @@ "File '/jsx.js' does not exist.", "File '/jsx.jsx' exists - use it as a name resolution result.", "======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -23,6 +26,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +41,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +56,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +71,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,6 +86,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,5 +100,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json index 2d98099a28f19..44d0ab3175945 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_notSupported3.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './jsx' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration.", @@ -10,6 +11,8 @@ "File '/jsx.js' does not exist.", "File '/jsx.jsx' exists - use it as a name resolution result.", "======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -23,6 +26,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +41,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +56,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +71,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,6 +86,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,5 +100,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json index 3a1310358ecb5..e17b43c5c66b3 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'normalize.css' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +70,8 @@ "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", "File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it.", "======== Module name 'normalize.css' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +84,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +98,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -105,6 +112,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -117,6 +126,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -129,6 +140,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -140,5 +153,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json index 824c82941bcc0..0aaf68af6cb44 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +63,8 @@ "File '/node_modules/foo/index.d.ts' does not exist.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,6 +77,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,6 +91,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +105,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,6 +119,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +133,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -133,5 +146,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json index 0137a3b261791..a9ab2e9baa0cd 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json @@ -1,4 +1,6 @@ [ + "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'js' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'js' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +21,8 @@ "File '/node_modules/js/index.js' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/js/index.js', result '/node_modules/js/index.js'.", "======== Module name 'js' was successfully resolved to '/node_modules/js/index.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +35,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +63,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,6 +77,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,6 +91,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -90,5 +104,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json index f576bfff8635a..d354aafc93266 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json @@ -1,4 +1,6 @@ [ + "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo/test.js' from '/test.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/test.js'.", @@ -41,6 +43,12 @@ "File '/relative.tsx' does not exist.", "File '/relative.d.ts' exists - use it as a name resolution result.", "======== Module name './relative' was successfully resolved to '/relative.d.ts'. ========", + "File '/node_modules/foo/lib/package.json' does not exist.", + "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +58,8 @@ "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +69,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +80,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +91,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,6 +102,8 @@ "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +113,8 @@ "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -104,6 +124,8 @@ "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -113,6 +135,8 @@ "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +146,8 @@ "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -131,6 +157,8 @@ "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -140,6 +168,8 @@ "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -149,6 +179,8 @@ "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -158,6 +190,8 @@ "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -167,6 +201,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -176,6 +212,8 @@ "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -185,6 +223,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -193,5 +233,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithRequire.trace.json b/tests/baselines/reference/moduleResolutionWithRequire.trace.json index 9092829302e64..e0c394afe7d4d 100644 --- a/tests/baselines/reference/moduleResolutionWithRequire.trace.json +++ b/tests/baselines/reference/moduleResolutionWithRequire.trace.json @@ -1,4 +1,7 @@ [ + "File '/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +15,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +30,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -38,6 +45,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +60,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +75,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,5 +89,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json b/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json index 43aa769eac31c..df392e07434f3 100644 --- a/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json +++ b/tests/baselines/reference/moduleResolutionWithRequireAndImport.trace.json @@ -1,9 +1,13 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './other' from '/index.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/other', target file types: TypeScript, Declaration.", "File '/other.ts' exists - use it as a name resolution result.", "======== Module name './other' was successfully resolved to '/other.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -17,6 +21,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +36,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +51,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +66,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +81,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,5 +95,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json index 8f7f02beaea36..05d60eaa52b2d 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_empty.trace.json @@ -1,9 +1,13 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -14,6 +18,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -24,6 +30,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +42,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +54,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +66,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,5 +77,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json index 8f7f02beaea36..05d60eaa52b2d 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_notSpecified.trace.json @@ -1,9 +1,13 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -14,6 +18,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -24,6 +30,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +42,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +54,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +66,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,5 +77,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json index 8946291f8d030..3861548e2cf86 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one.trace.json @@ -1,9 +1,14 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ios.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ios.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -14,6 +19,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -24,6 +31,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +43,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +55,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +67,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,5 +78,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json index 8f7f02beaea36..05d60eaa52b2d 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_oneBlank.trace.json @@ -1,9 +1,13 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -14,6 +18,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -24,6 +30,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +42,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +54,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +66,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,5 +77,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json index 3d5a40fb3f02c..7e270d24b8e58 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_oneNotFound.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", @@ -11,6 +12,9 @@ "File '/foo.ios.jsx' does not exist.", "Directory '/foo' does not exist, skipping all lookups in it.", "======== Module name './foo' was not resolved. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -21,6 +25,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +37,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +61,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,5 +84,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json index 6fd66a048fdcc..cb19463f299cc 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", @@ -8,6 +9,12 @@ "File '/foo/package.json' does not exist.", "File '/foo/index.ios.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo/index.ios.ts'. ========", + "File '/foo/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/foo/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -18,6 +25,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -28,6 +37,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -38,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -48,6 +61,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,5 +84,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json index 963e9da2855f1..510d1b6e78d08 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'some-library' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +13,11 @@ "File '/node_modules/some-library/index.ios.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/some-library/index.ios.d.ts', result '/node_modules/some-library/index.ios.d.ts'.", "======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.d.ts'. ========", + "File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -21,6 +27,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +38,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +49,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -48,6 +60,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +71,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,5 +81,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json index a2b9fe5bb60a0..a859834fed75f 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModulePath.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'some-library/foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'some-library/foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -9,6 +10,11 @@ "File '/node_modules/some-library/foo.ios.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/some-library/foo.ios.d.ts', result '/node_modules/some-library/foo.ios.d.ts'.", "======== Module name 'some-library/foo' was successfully resolved to '/node_modules/some-library/foo.ios.d.ts'. ========", + "File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -18,6 +24,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -27,6 +35,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +46,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +57,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +68,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,5 +78,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json index 7ef2a6e23a1d2..0c7679fb1bb77 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'some-library' from '/test.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library'.", @@ -42,6 +43,12 @@ "File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups.", "Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'.", "======== Module name 'some-library/index.js' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ========", + "File '/node_modules/some-library/lib/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +58,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -60,6 +69,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +80,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +91,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,6 +102,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,5 +112,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json index 0290900258f6e..8be1462a21e41 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'some-library' from '/test.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -10,6 +11,11 @@ "File '/node_modules/some-library/index.ios.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/some-library/index.ios.ts', result '/node_modules/some-library/index.ios.ts'.", "======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.ts'. ========", + "File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +25,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -28,6 +36,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +47,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +58,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +69,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,5 +79,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json index d0821b52bead3..f69f28f86ccc1 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsModule.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo.js' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, Declaration.", @@ -14,6 +15,10 @@ "File name '/foo.js' has a '.js' extension - stripping it.", "File '/foo.ios.js' exists - use it as a name resolution result.", "======== Module name './foo.js' was successfully resolved to '/foo.ios.js'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -24,6 +29,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +41,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +53,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +65,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +77,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -73,5 +88,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json index 469f7a6c46361..099a025b2f62c 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo.json' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, Declaration.", @@ -12,6 +13,8 @@ "File name '/foo.json' has a '.json' extension - stripping it.", "File '/foo.ios.json' exists - use it as a name resolution result.", "======== Module name './foo.json' was successfully resolved to '/foo.ios.json'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +25,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +37,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +61,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,5 +84,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json index c61525f6f021a..5ee5b1320aa43 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json @@ -1,9 +1,15 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo-ios.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo-ios.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -14,6 +20,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -24,6 +32,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +44,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +56,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,5 +79,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json index b2211dfd75609..57170d60aaa16 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json @@ -1,10 +1,15 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", "File '/foo-ios.ts' does not exist.", "File '/foo__native.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo__native.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -15,6 +20,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +32,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -35,6 +44,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +56,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,5 +79,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json index 86eb088322240..034d49b589df7 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", @@ -6,6 +7,9 @@ "File '/foo__native.ts' does not exist.", "File '/foo.ts' exists - use it as a name resolution result.", "======== Module name './foo' was successfully resolved to '/foo.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -16,6 +20,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +32,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +44,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +56,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,5 +79,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json index 355c103ae4fa9..e216e8592297d 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './foo' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration.", @@ -21,6 +22,8 @@ "File '/foo.jsx' does not exist.", "Directory '/foo' does not exist, skipping all lookups in it.", "======== Module name './foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +34,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +46,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +58,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +70,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +82,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,5 +93,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json index d717a732e0266..b2724f8dd2f20 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module './library-a' from '/src/app.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration.", @@ -17,6 +19,12 @@ "File '/src/library-b/package.json' does not exist.", "File '/src/library-b/index.ts' exists - use it as a name resolution result.", "======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========", + "File '/src/library-a/package.json' does not exist according to earlier cached lookups.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/src/library-b/package.json' does not exist according to earlier cached lookups.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -28,6 +36,8 @@ "File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result.", "Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'.", "======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +51,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +66,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,6 +81,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,6 +96,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +111,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -105,5 +125,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json index ec59557b23985..b69d29aed20e5 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module './shared/abc' from '/src/app.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, Declaration.", @@ -9,6 +11,14 @@ "Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, Declaration.", "File '/src/shared2/abc.ts' exists - use it as a name resolution result.", "======== Module name './shared2/abc' was successfully resolved to '/src/shared2/abc.ts'. ========", + "File '/src/shared/package.json' does not exist.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/src/shared2/package.json' does not exist.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +32,8 @@ "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -35,6 +47,8 @@ "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -48,6 +62,8 @@ "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +77,8 @@ "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,6 +92,8 @@ "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,5 +106,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json index 5d604e79fbf97..1eabfa9938ee6 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json @@ -1,4 +1,6 @@ [ + "File '/app/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving type reference directive 'linked', containing file '/app/app.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", @@ -9,6 +11,10 @@ "File '/app/node_modules/linked.d.ts' does not exist.", "File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result.", "======== Type reference directive 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts', primary: false. ========", + "File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups.", + "File '/app/node_modules/package.json' does not exist.", + "File '/app/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'real' from '/app/node_modules/linked/index.d.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +28,10 @@ "File '/app/node_modules/real/index.tsx' does not exist.", "File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result.", "======== Module name 'real' was successfully resolved to '/app/node_modules/real/index.d.ts'. ========", + "File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups.", + "File '/app/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/app/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'linked' from '/app/app.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +56,10 @@ "File '/app/node_modules/linked2/index.tsx' does not exist.", "File '/app/node_modules/linked2/index.d.ts' exists - use it as a name resolution result.", "======== Module name 'linked2' was successfully resolved to '/app/node_modules/linked2/index.d.ts'. ========", + "File '/app/node_modules/linked2/package.json' does not exist according to earlier cached lookups.", + "File '/app/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/app/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'real' from '/app/node_modules/linked2/index.d.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +73,8 @@ "File '/app/node_modules/real/index.tsx' does not exist.", "File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result.", "======== Module name 'real' was successfully resolved to '/app/node_modules/real/index.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +88,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -85,6 +103,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +118,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -111,6 +133,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -124,6 +148,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -136,5 +162,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json index 74f2d01acf798..42be1b880d500 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'library-a', containing file '/app.ts', root directory ''. ========", "Root directory cannot be determined, skipping primary search paths.", "Looking up in 'node_modules' folder, initial location '/'.", @@ -19,6 +20,14 @@ "File '/node_modules/@types/library-b/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/library-b/index.d.ts', result '/node_modules/@types/library-b/index.d.ts'.", "======== Type reference directive 'library-b' was successfully resolved to '/node_modules/@types/library-b/index.d.ts', primary: false. ========", + "File '/node_modules/@types/library-a/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/library-b/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'library-a', containing file '/node_modules/@types/library-b/index.d.ts', root directory ''. ========", "Root directory cannot be determined, skipping primary search paths.", "Looking up in 'node_modules' folder, initial location '/node_modules/@types/library-b'.", @@ -29,6 +38,8 @@ "File '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'.", "======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -38,6 +49,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +60,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +70,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +81,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +91,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,5 +101,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json index d717a732e0266..b2724f8dd2f20 100644 --- a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module './library-a' from '/src/app.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration.", @@ -17,6 +19,12 @@ "File '/src/library-b/package.json' does not exist.", "File '/src/library-b/index.ts' exists - use it as a name resolution result.", "======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ========", + "File '/src/library-a/package.json' does not exist according to earlier cached lookups.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/src/library-b/package.json' does not exist according to earlier cached lookups.", + "File '/src/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'library-a' from '/src/library-b/index.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -28,6 +36,8 @@ "File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result.", "Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'.", "======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +51,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +66,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,6 +81,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,6 +96,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +111,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -105,5 +125,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json index c93269a91d01b..b0644ca6d464e 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/bar' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -13,6 +14,9 @@ "File '/node_modules/foo/bar/types.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/foo/bar/types.d.ts', result '/node_modules/foo/bar/types.d.ts'.", "======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/types.d.ts'. ========", + "File '/node_modules/foo/bar/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +29,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +43,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +57,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +71,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -73,6 +85,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,5 +98,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json index 318f6634cebd5..cf89cd38dd6fd 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/@bar' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -13,6 +14,9 @@ "File '/node_modules/foo/@bar/types.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/foo/@bar/types.d.ts', result '/node_modules/foo/@bar/types.d.ts'.", "======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/types.d.ts'. ========", + "File '/node_modules/foo/@bar/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +29,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +43,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +57,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +71,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -73,6 +85,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,5 +98,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json index 4d9fcc026a3f9..ba95e72fe0682 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module '@foo/bar' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -13,6 +14,9 @@ "File '/node_modules/@foo/bar/types.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@foo/bar/types.d.ts', result '/node_modules/@foo/bar/types.d.ts'.", "======== Module name '@foo/bar' was successfully resolved to '/node_modules/@foo/bar/types.d.ts'. ========", + "File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +29,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +43,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +57,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +71,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -73,6 +85,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,5 +98,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json index 17ef768bec951..1de91206059aa 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/bar' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +60,8 @@ "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", "Resolving real path for '/node_modules/foo/bar/index.js', result '/node_modules/foo/bar/index.js'.", "======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/index.js' with Package ID 'foo/bar/index.js@1.2.3'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +74,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +88,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +102,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +116,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +130,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -130,5 +143,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json index 5c45c5231b894..a638c40d3911a 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/@bar' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +60,8 @@ "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", "Resolving real path for '/node_modules/foo/@bar/index.js', result '/node_modules/foo/@bar/index.js'.", "======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/index.js' with Package ID 'foo/@bar/index.js@1.2.3'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +74,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +88,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +102,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +116,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +130,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -130,5 +143,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json index 748d82ec5fcaf..47e40f16a4c37 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json @@ -1,9 +1,12 @@ [ + "File '/node_modules/foo/src/package.json' does not exist.", + "Found 'package.json' at '/node_modules/foo/package.json'.", + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/index.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/foo/package.json'.", + "File '/node_modules/foo/package.json' exists according to earlier cached lookups.", "File '/node_modules/foo.ts' does not exist.", "File '/node_modules/foo.tsx' does not exist.", "File '/node_modules/foo.d.ts' does not exist.", @@ -17,6 +20,8 @@ "File '/node_modules/foo/src/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/foo/src/index.d.ts', result '/node_modules/foo/src/index.d.ts'.", "======== Module name 'foo' was successfully resolved to '/node_modules/foo/src/index.d.ts' with Package ID 'foo/src/index.d.ts@1.2.3'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +34,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +48,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -53,6 +62,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +90,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -88,5 +103,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json b/tests/baselines/reference/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json index a6d17c4961116..08fb235a099a7 100644 --- a/tests/baselines/reference/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json +++ b/tests/baselines/reference/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json @@ -1,12 +1,15 @@ [ + "File '/node_modules/@restart/hooks/esm/package.json' does not exist.", + "Found 'package.json' at '/node_modules/@restart/hooks/package.json'.", + "File '/package.json' does not exist.", "======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", - "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "Resolving in CJS mode with conditions 'require', 'types'.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'.", - "Found 'package.json' at '/node_modules/@restart/hooks/package.json'.", + "File '/node_modules/@restart/hooks/package.json' exists according to earlier cached lookups.", "File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist.", "File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist.", "File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist.", @@ -16,6 +19,8 @@ "File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'.", "======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -28,6 +33,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -40,6 +47,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +61,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +75,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,6 +89,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,5 +102,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/node10AlternateResult_noResolution.trace.json b/tests/baselines/reference/node10AlternateResult_noResolution.trace.json index 9c4429e742650..f47893284844d 100644 --- a/tests/baselines/reference/node10AlternateResult_noResolution.trace.json +++ b/tests/baselines/reference/node10AlternateResult_noResolution.trace.json @@ -1,9 +1,11 @@ [ + "Found 'package.json' at '/node_modules/pkg/package.json'.", + "File '/package.json' does not exist.", "======== Resolving module 'pkg' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/pkg/package.json'.", + "File '/node_modules/pkg/package.json' exists according to earlier cached lookups.", "File '/node_modules/pkg.ts' does not exist.", "File '/node_modules/pkg.tsx' does not exist.", "File '/node_modules/pkg.d.ts' does not exist.", @@ -33,6 +35,8 @@ "File '/node_modules/pkg/definitely-not-index.tsx' does not exist.", "File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result.", "======== Module name 'pkg' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +63,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +77,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +91,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +105,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -104,5 +118,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/node10Alternateresult_noTypes.trace.json b/tests/baselines/reference/node10Alternateresult_noTypes.trace.json index 94f5d7c7ec567..14f4490da0b89 100644 --- a/tests/baselines/reference/node10Alternateresult_noTypes.trace.json +++ b/tests/baselines/reference/node10Alternateresult_noTypes.trace.json @@ -1,9 +1,11 @@ [ + "Found 'package.json' at '/node_modules/pkg/package.json'.", + "File '/package.json' does not exist.", "======== Resolving module 'pkg' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/pkg/package.json'.", + "File '/node_modules/pkg/package.json' exists according to earlier cached lookups.", "File '/node_modules/pkg.ts' does not exist.", "File '/node_modules/pkg.tsx' does not exist.", "File '/node_modules/pkg.d.ts' does not exist.", @@ -47,6 +49,8 @@ "File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/pkg/untyped.js', result '/node_modules/pkg/untyped.js'.", "======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/untyped.js' with Package ID 'pkg/untyped.js@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +63,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +77,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +91,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +105,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +119,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -118,5 +132,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/node10IsNode_node.trace.json b/tests/baselines/reference/node10IsNode_node.trace.json index 7182602f4065d..1c3037d65448f 100644 --- a/tests/baselines/reference/node10IsNode_node.trace.json +++ b/tests/baselines/reference/node10IsNode_node.trace.json @@ -1,9 +1,12 @@ [ + "Found 'package.json' at '/node_modules/fancy-lib/package.json'.", + "File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups.", + "File '/package.json' does not exist.", "======== Resolving module 'fancy-lib' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/fancy-lib/package.json'.", + "File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups.", "File '/node_modules/fancy-lib.ts' does not exist.", "File '/node_modules/fancy-lib.tsx' does not exist.", "File '/node_modules/fancy-lib.d.ts' does not exist.", @@ -17,6 +20,8 @@ "File '/node_modules/fancy-lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'.", "======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +34,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +48,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -53,6 +62,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +90,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -88,5 +103,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/node10IsNode_node10.trace.json b/tests/baselines/reference/node10IsNode_node10.trace.json index 7182602f4065d..1c3037d65448f 100644 --- a/tests/baselines/reference/node10IsNode_node10.trace.json +++ b/tests/baselines/reference/node10IsNode_node10.trace.json @@ -1,9 +1,12 @@ [ + "Found 'package.json' at '/node_modules/fancy-lib/package.json'.", + "File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups.", + "File '/package.json' does not exist.", "======== Resolving module 'fancy-lib' from '/main.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/fancy-lib/package.json'.", + "File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups.", "File '/node_modules/fancy-lib.ts' does not exist.", "File '/node_modules/fancy-lib.tsx' does not exist.", "File '/node_modules/fancy-lib.d.ts' does not exist.", @@ -17,6 +20,8 @@ "File '/node_modules/fancy-lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'.", "======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +34,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +48,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -53,6 +62,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +90,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -88,5 +103,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nodeColonModuleResolution.trace.json b/tests/baselines/reference/nodeColonModuleResolution.trace.json index 65af448d3ece3..c5fa5f4e8813c 100644 --- a/tests/baselines/reference/nodeColonModuleResolution.trace.json +++ b/tests/baselines/reference/nodeColonModuleResolution.trace.json @@ -1,10 +1,21 @@ [ + "File '/a/b/node_modules/@types/node/package.json' does not exist.", + "File '/a/b/node_modules/@types/package.json' does not exist.", + "File '/a/b/node_modules/package.json' does not exist.", + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "Module 'ph' was resolved as locally declared ambient module in file '/a/b/node_modules/@types/node/ph.d.ts'.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'node:ph' from '/a/b/main.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, Declaration.", "Skipping module 'node:ph' that looks like an absolute URI, target file types: JavaScript.", "======== Module name 'node:ph' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -18,6 +29,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +44,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +59,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +74,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +89,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -82,5 +103,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/nodeColonModuleResolution2.trace.json b/tests/baselines/reference/nodeColonModuleResolution2.trace.json index 08083bc9c8440..eb7b797fc446e 100644 --- a/tests/baselines/reference/nodeColonModuleResolution2.trace.json +++ b/tests/baselines/reference/nodeColonModuleResolution2.trace.json @@ -1,4 +1,7 @@ [ + "File '/a/b/package.json' does not exist.", + "File '/a/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'fake:thing' from '/a/b/main.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "'paths' option is specified, looking for a pattern to match module name 'fake:thing'.", @@ -14,6 +17,14 @@ "File '/a/b/node_modules/fake/thing/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/a/b/node_modules/fake/thing/index.d.ts', result '/a/b/node_modules/fake/thing/index.d.ts'.", "======== Module name 'fake:thing' was successfully resolved to '/a/b/node_modules/fake/thing/index.d.ts'. ========", + "File '/a/b/node_modules/fake/thing/package.json' does not exist according to earlier cached lookups.", + "File '/a/b/node_modules/fake/package.json' does not exist.", + "File '/a/b/node_modules/package.json' does not exist.", + "File '/a/b/package.json' does not exist according to earlier cached lookups.", + "File '/a/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/a/b/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +40,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/a/b/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +57,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/a/b/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +74,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/a/b/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,6 +91,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/a/b/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,6 +108,8 @@ "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/a/b/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -103,5 +124,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/a/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/packageJsonMain.trace.json b/tests/baselines/reference/packageJsonMain.trace.json index 7a5ae1bf7af59..31735ac8a7d1a 100644 --- a/tests/baselines/reference/packageJsonMain.trace.json +++ b/tests/baselines/reference/packageJsonMain.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -171,6 +172,8 @@ "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", "Resolving real path for '/node_modules/baz/zab/index.js', result '/node_modules/baz/zab/index.js'.", "======== Module name 'baz' was successfully resolved to '/node_modules/baz/zab/index.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -180,6 +183,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -189,6 +194,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -198,6 +205,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -207,6 +216,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -216,6 +227,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -224,5 +237,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json index 1b4d806fee202..bce9f60e3923e 100644 --- a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json +++ b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +58,8 @@ "File '/node_modules/foo/index.d.ts' does not exist.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +69,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,6 +80,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,6 +91,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +102,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -102,6 +113,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,5 +123,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.trace.json index 363eb11f29b70..03e9bfb2e8fb7 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution1_amd.trace.json @@ -1,4 +1,8 @@ [ + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +16,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +31,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -38,6 +46,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +61,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +76,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,5 +90,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution1_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution1_node.trace.json index 363eb11f29b70..03e9bfb2e8fb7 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution1_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution1_node.trace.json @@ -1,4 +1,8 @@ [ + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -12,6 +16,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +31,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -38,6 +46,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +61,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +76,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,5 +90,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.trace.json index 6e1ef3d70d119..4f15ca268c27f 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution2_classic.trace.json @@ -1,4 +1,11 @@ [ + "File '/.src/root/src/folder1/package.json' does not exist.", + "File '/.src/root/src/package.json' does not exist.", + "File '/.src/root/package.json' does not exist.", + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -15,6 +22,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +40,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +58,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,6 +94,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +111,7 @@ "Directory '/.src/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution2_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution2_node.trace.json index 6e1ef3d70d119..4f15ca268c27f 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution2_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution2_node.trace.json @@ -1,4 +1,11 @@ [ + "File '/.src/root/src/folder1/package.json' does not exist.", + "File '/.src/root/src/package.json' does not exist.", + "File '/.src/root/package.json' does not exist.", + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -15,6 +22,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +40,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +58,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,6 +76,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,6 +94,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,5 +111,7 @@ "Directory '/.src/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.trace.json index 3b838600b6049..72fb9682d3c82 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_classic.trace.json @@ -1,10 +1,16 @@ [ + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'.", "Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'.", "File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result.", "======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result.", @@ -24,6 +30,12 @@ "File 'c:/root/file4.d.ts' does not exist.", "File 'c:/file4.ts' exists - use it as a name resolution result.", "======== Module name 'file4' was successfully resolved to 'c:/file4.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +49,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +64,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,6 +79,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,6 +94,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,6 +109,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -101,5 +123,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json index 209dc42d5939c..b45b8522edd84 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'.", @@ -6,6 +9,9 @@ "Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration.", "File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result.", "======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration.", @@ -33,6 +39,14 @@ "File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'.", "======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups.", + "File 'c:/node_modules/package.json' does not exist.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +60,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +75,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +90,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -85,6 +105,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +120,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,5 +134,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.trace.json index f00232b0c5193..3f6ca6efb6ccf 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_classic.trace.json @@ -1,10 +1,16 @@ [ + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'.", "Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'.", "File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result.", "======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result.", @@ -24,6 +30,12 @@ "File 'c:/root/file4.d.ts' does not exist.", "File 'c:/file4.ts' exists - use it as a name resolution result.", "======== Module name 'file4' was successfully resolved to 'c:/file4.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -37,6 +49,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +64,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -63,6 +79,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -76,6 +94,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,6 +109,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -101,5 +123,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json index bc4b608cee04f..2ce98a90ea1bc 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'.", @@ -6,6 +9,9 @@ "Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration.", "File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result.", "======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration.", @@ -33,6 +39,14 @@ "File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'.", "======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups.", + "File 'c:/node_modules/package.json' does not exist.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +59,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +87,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +101,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +115,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -104,5 +128,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.trace.json index 069baaa76da72..ab302a4772d3d 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_classic.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module 'folder2/file1' from 'c:/root/folder1/file1.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file1'.", @@ -45,6 +48,20 @@ "File 'c:/root/file4.d.ts' does not exist.", "File 'c:/file4.ts' exists - use it as a name resolution result.", "======== Module name 'file4' was successfully resolved to 'c:/file4.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/generated/folder3/package.json' does not exist.", + "File 'c:/root/generated/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/shared/components/package.json' does not exist.", + "File 'c:/root/shared/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +75,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +90,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,6 +105,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -97,6 +120,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,6 +135,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,5 +149,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json index 430cebb72795a..5c47a91a3aa9b 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module 'folder2/file1' from 'c:/root/folder1/file1.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file1'.", @@ -58,6 +61,22 @@ "File 'c:/node_modules/file4.ts' exists - use it as a name resolution result.", "Resolving real path for 'c:/node_modules/file4.ts', result 'c:/node_modules/file4.ts'.", "======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4.ts'. ========", + "File 'c:/root/folder2/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/generated/folder3/package.json' does not exist.", + "File 'c:/root/generated/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/shared/components/file3/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/shared/components/package.json' does not exist.", + "File 'c:/root/shared/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/node_modules/package.json' does not exist.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +89,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -82,6 +103,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,6 +117,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,6 +131,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -118,6 +145,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -129,5 +158,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.trace.json index 24b30147d485b..724e6a121f6a2 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/src/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module './project/file3' from 'c:/root/src/file1.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "'rootDirs' option is set, using it to resolve relative module name './project/file3'.", @@ -10,6 +13,11 @@ "Loading 'project/file3' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file3'.", "File 'c:/root/generated/src/project/file3.ts' exists - use it as a name resolution result.", "======== Module name './project/file3' was successfully resolved to 'c:/root/generated/src/project/file3.ts'. ========", + "File 'c:/root/generated/src/project/package.json' does not exist.", + "File 'c:/root/generated/src/package.json' does not exist.", + "File 'c:/root/generated/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '../file2' from 'c:/root/generated/src/project/file3.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "'rootDirs' option is set, using it to resolve relative module name '../file2'.", @@ -26,6 +34,11 @@ "File 'c:/root/src/file2.tsx' does not exist.", "File 'c:/root/src/file2.d.ts' exists - use it as a name resolution result.", "======== Module name '../file2' was successfully resolved to 'c:/root/src/file2.d.ts'. ========", + "File 'c:/root/src/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +55,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +73,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,6 +91,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -90,6 +109,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,6 +127,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -121,5 +144,7 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json index b03e837a0b3c1..2b9eadb00d248 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution6_node.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/src/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module './project/file3' from 'c:/root/src/file1.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'rootDirs' option is set, using it to resolve relative module name './project/file3'.", @@ -13,6 +16,11 @@ "Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file3', target file types: TypeScript, Declaration.", "File 'c:/root/generated/src/project/file3.ts' exists - use it as a name resolution result.", "======== Module name './project/file3' was successfully resolved to 'c:/root/generated/src/project/file3.ts'. ========", + "File 'c:/root/generated/src/project/package.json' does not exist.", + "File 'c:/root/generated/src/package.json' does not exist.", + "File 'c:/root/generated/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '../file2' from 'c:/root/generated/src/project/file3.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'rootDirs' option is set, using it to resolve relative module name '../file2'.", @@ -36,6 +44,12 @@ "File 'c:/root/src/file2/index.tsx' does not exist.", "File 'c:/root/src/file2/index.d.ts' exists - use it as a name resolution result.", "======== Module name '../file2' was successfully resolved to 'c:/root/src/file2/index.d.ts'. ========", + "File 'c:/root/src/file2/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/src/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +66,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +84,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,6 +102,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -100,6 +120,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -116,6 +138,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -131,5 +155,7 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.trace.json index da15fc9ad28bf..c3c749b76c447 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_classic.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/src/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module './project/file2' from 'c:/root/src/file1.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "'rootDirs' option is set, using it to resolve relative module name './project/file2'.", @@ -33,6 +36,11 @@ "File 'c:/module3.tsx' does not exist.", "File 'c:/module3.d.ts' exists - use it as a name resolution result.", "======== Module name 'module3' was successfully resolved to 'c:/module3.d.ts'. ========", + "File 'c:/root/generated/src/project/package.json' does not exist.", + "File 'c:/root/generated/src/package.json' does not exist.", + "File 'c:/root/generated/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module1'.", @@ -71,6 +79,19 @@ "File 'c:/root/src/file3.tsx' does not exist.", "File 'c:/root/src/file3.d.ts' exists - use it as a name resolution result.", "======== Module name '../file3' was successfully resolved to 'c:/root/src/file3.d.ts'. ========", + "File 'c:/shared/package.json' does not exist.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/generated/src/templates/package.json' does not exist.", + "File 'c:/root/generated/src/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/generated/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/src/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,6 +108,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -103,6 +126,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +144,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -135,6 +162,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -151,6 +180,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -166,5 +197,7 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json index 33d0880875b6c..bbc5c95104e4b 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json @@ -1,4 +1,7 @@ [ + "File 'c:/root/src/package.json' does not exist.", + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module './project/file2' from 'c:/root/src/file1.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'rootDirs' option is set, using it to resolve relative module name './project/file2'.", @@ -39,6 +42,11 @@ "File 'c:/node_modules/module3.d.ts' exists - use it as a name resolution result.", "Resolving real path for 'c:/node_modules/module3.d.ts', result 'c:/node_modules/module3.d.ts'.", "======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3.d.ts'. ========", + "File 'c:/root/generated/src/project/package.json' does not exist.", + "File 'c:/root/generated/src/package.json' does not exist.", + "File 'c:/root/generated/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module1'.", @@ -92,6 +100,22 @@ "File 'c:/root/src/file3/index.tsx' does not exist.", "File 'c:/root/src/file3/index.d.ts' exists - use it as a name resolution result.", "======== Module name '../file3' was successfully resolved to 'c:/root/src/file3/index.d.ts'. ========", + "File 'c:/shared/module1/package.json' does not exist according to earlier cached lookups.", + "File 'c:/shared/package.json' does not exist.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/generated/src/templates/package.json' does not exist.", + "File 'c:/root/generated/src/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/generated/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/src/file3/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/src/package.json' does not exist according to earlier cached lookups.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File 'c:/node_modules/package.json' does not exist.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +131,8 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +148,8 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -137,6 +165,8 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -152,6 +182,8 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -167,6 +199,8 @@ "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -181,5 +215,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.trace.json index 9d29d1260cbb1..32a526bfeee31 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution8_classic.trace.json @@ -1,4 +1,6 @@ [ + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module '@speedy/folder1/testing' from 'c:/root/index.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name '@speedy/folder1/testing'.", @@ -7,6 +9,12 @@ "Trying substitution '*/dist/index.ts', candidate module location: 'folder1/dist/index.ts'.", "File 'c:/root/folder1/dist/index.ts' exists - use it as a name resolution result.", "======== Module name '@speedy/folder1/testing' was successfully resolved to 'c:/root/folder1/dist/index.ts'. ========", + "File 'c:/root/folder1/dist/package.json' does not exist.", + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -20,6 +28,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -33,6 +43,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +58,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +73,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +88,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,5 +102,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json index 039e06eb311f3..05e217484a9c4 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution8_node.trace.json @@ -1,4 +1,6 @@ [ + "File 'c:/root/package.json' does not exist.", + "File 'c:/package.json' does not exist.", "======== Resolving module '@speedy/folder1/testing' from 'c:/root/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name '@speedy/folder1/testing'.", @@ -7,6 +9,12 @@ "Trying substitution '*/dist/index.ts', candidate module location: 'folder1/dist/index.ts'.", "File 'c:/root/folder1/dist/index.ts' exists - use it as a name resolution result.", "======== Module name '@speedy/folder1/testing' was successfully resolved to 'c:/root/folder1/dist/index.ts'. ========", + "File 'c:/root/folder1/dist/package.json' does not exist.", + "File 'c:/root/folder1/package.json' does not exist.", + "File 'c:/root/package.json' does not exist according to earlier cached lookups.", + "File 'c:/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -20,6 +28,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from 'c:/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -33,6 +43,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from 'c:/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +58,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from 'c:/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +73,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from 'c:/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +88,8 @@ "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from 'c:/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,5 +102,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.", "Directory 'c:/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json index 9c4a7a475be14..5daa6afaed6db 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json @@ -1,4 +1,12 @@ [ + "File '/root/src/package.json' does not exist.", + "File '/root/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/root/src/package.json' does not exist according to earlier cached lookups.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '/foo' from '/root/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", @@ -31,6 +39,8 @@ "Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript.", "File '/root/src/bar.js' exists - use it as a name resolution result.", "======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +54,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +69,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +84,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +99,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -96,6 +114,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -108,5 +128,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json index 75e151060ae50..5d762c5123503 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json @@ -1,4 +1,12 @@ [ + "File '/root/src/package.json' does not exist.", + "File '/root/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/root/src/package.json' does not exist according to earlier cached lookups.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '/foo' from '/root/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", @@ -259,6 +267,8 @@ "Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript.", "File '/root/src/bar.js' exists - use it as a name resolution result.", "======== Module name 'http://server/bar' was successfully resolved to '/root/src/bar.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -272,6 +282,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -285,6 +297,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -298,6 +312,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -311,6 +327,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -324,6 +342,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -336,5 +356,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json index 456d80728aa3f..420ca9f644ddf 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json @@ -1,4 +1,13 @@ [ + "File '/root/import/package.json' does not exist.", + "File '/root/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/root/client/package.json' does not exist.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/root/src/package.json' does not exist.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '/import/foo' from '/root/src/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/import/foo'.", @@ -28,6 +37,8 @@ "Loading module as file / folder, candidate module location '/root/client/bar', target file types: JavaScript.", "File '/root/client/bar.js' exists - use it as a name resolution result.", "======== Module name '/client/bar' was successfully resolved to '/root/client/bar.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +52,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -54,6 +67,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,6 +82,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,6 +97,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,6 +112,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -105,5 +126,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json index 48590334f1e15..112d9f8228893 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json @@ -1,4 +1,6 @@ [ + "File '/root/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '/foo' from '/root/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", @@ -29,6 +31,10 @@ "Loading module as file / folder, candidate module location '/bar', target file types: JavaScript.", "File '/bar.js' exists - use it as a name resolution result.", "======== Module name '/bar' was successfully resolved to '/bar.js'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +48,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +63,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +78,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +93,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,6 +108,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,5 +122,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json index ec744ffe595b4..e6c3fb4795413 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json @@ -1,4 +1,12 @@ [ + "File '/root/src/package.json' does not exist.", + "File '/root/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/root/src/package.json' does not exist according to earlier cached lookups.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/root/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '/foo' from '/root/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", @@ -31,6 +39,8 @@ "Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript.", "File '/root/src/bar.js' exists - use it as a name resolution result.", "======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +54,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +69,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +84,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +99,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -96,6 +114,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -108,5 +128,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json index c32e683d6dd1b..6fb3f30a7e9be 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json @@ -1,4 +1,6 @@ [ + "File '/root/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module '/foo' from '/root/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'.", @@ -29,6 +31,10 @@ "Loading module as file / folder, candidate module location '/bar', target file types: JavaScript.", "File '/bar.js' exists - use it as a name resolution result.", "======== Module name '/bar' was successfully resolved to '/bar.js'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +48,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/root/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +63,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/root/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +78,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/root/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +93,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/root/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,6 +108,8 @@ "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/root/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,5 +122,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/root/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json index dc8f888023a89..d723a1f551283 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension.trace.json @@ -1,4 +1,9 @@ [ + "File '/foo/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/bar/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'foo' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'.", @@ -15,6 +20,8 @@ "Trying substitution 'bar/bar.js', candidate module location: 'bar/bar.js'.", "File '/bar/bar.js' exists - use it as a name resolution result.", "======== Module name 'bar' was successfully resolved to '/bar/bar.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +32,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -35,6 +44,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +56,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,6 +80,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,5 +91,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json index d58ed7c1057ec..2f9e747cbf418 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json @@ -1,4 +1,11 @@ [ + "File '/foo/zone.js/package.json' does not exist.", + "File '/foo/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/foo/zone.tsx/package.json' does not exist.", + "File '/foo/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'zone.js' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'zone.js'.", @@ -13,7 +20,7 @@ "File '/foo/zone.js.ts' does not exist.", "File '/foo/zone.js.tsx' does not exist.", "File '/foo/zone.js.d.ts' does not exist.", - "File '/foo/zone.js/package.json' does not exist.", + "File '/foo/zone.js/package.json' does not exist according to earlier cached lookups.", "File '/foo/zone.js/index.ts' does not exist.", "File '/foo/zone.js/index.tsx' does not exist.", "File '/foo/zone.js/index.d.ts' exists - use it as a name resolution result.", @@ -32,11 +39,13 @@ "File '/foo/zone.tsx.ts' does not exist.", "File '/foo/zone.tsx.tsx' does not exist.", "File '/foo/zone.tsx.d.ts' does not exist.", - "File '/foo/zone.tsx/package.json' does not exist.", + "File '/foo/zone.tsx/package.json' does not exist according to earlier cached lookups.", "File '/foo/zone.tsx/index.ts' does not exist.", "File '/foo/zone.tsx/index.tsx' does not exist.", "File '/foo/zone.tsx/index.d.ts' exists - use it as a name resolution result.", "======== Module name 'zone.tsx' was successfully resolved to '/foo/zone.tsx/index.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +56,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,6 +80,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +92,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,6 +104,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -96,5 +115,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json index d5ad90d3381f0..bab9a76758861 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/bar/foobar.js' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.js'.", @@ -38,6 +39,8 @@ "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", "Resolving real path for '/node_modules/foo/bar/foobar.js', result '/node_modules/foo/bar/foobar.js'.", "======== Module name 'foo/bar/foobar.js' was successfully resolved to '/node_modules/foo/bar/foobar.js'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -47,6 +50,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +61,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,6 +72,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,6 +83,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +94,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -91,5 +104,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json index e55f4c7d6b98d..e56b2b7d59ce2 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'.", @@ -22,6 +23,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +35,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +47,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +59,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +71,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +83,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,5 +94,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathsValidation4.trace.json b/tests/baselines/reference/pathsValidation4.trace.json index b9c4ab14796b6..1768b46d1f75b 100644 --- a/tests/baselines/reference/pathsValidation4.trace.json +++ b/tests/baselines/reference/pathsValidation4.trace.json @@ -1,4 +1,7 @@ [ + "File '/.src/src/package.json' does not exist.", + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'someModule' from '/.src/src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'.", @@ -29,6 +32,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'someModule' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +47,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +62,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +77,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,6 +92,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -94,6 +107,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -106,5 +121,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/pathsValidation5.trace.json b/tests/baselines/reference/pathsValidation5.trace.json index 5bb648f020711..4584814eb8a54 100644 --- a/tests/baselines/reference/pathsValidation5.trace.json +++ b/tests/baselines/reference/pathsValidation5.trace.json @@ -1,4 +1,7 @@ [ + "File '/.src/src/package.json' does not exist.", + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'someModule' from '/.src/src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'paths' option is specified, looking for a pattern to match module name 'someModule'.", @@ -14,6 +17,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'someModule' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -27,6 +32,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -40,6 +47,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -53,6 +62,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +77,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,6 +92,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -91,5 +106,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json index 094bdc2634882..0901319424e73 100644 --- a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json +++ b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.", @@ -42,6 +43,8 @@ "File '/node_modules/foo/bar/foobar.json.js' does not exist.", "File '/node_modules/foo/bar/foobar.json.jsx' does not exist.", "======== Module name 'foo/bar/foobar.json' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +54,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -60,6 +65,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -69,6 +76,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +87,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,6 +98,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,5 +108,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json b/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json index 7ff6bd7b37f52..cbaa911ec4bc2 100644 --- a/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json +++ b/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.", @@ -34,6 +35,8 @@ "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", "Resolving real path for '/node_modules/foo/bar/foobar.json', result '/node_modules/foo/bar/foobar.json'.", "======== Module name 'foo/bar/foobar.json' was successfully resolved to '/node_modules/foo/bar/foobar.json'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +46,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +57,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +68,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,6 +79,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,6 +90,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -87,5 +100,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json index 933be781da039..42e277850e85d 100644 --- a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json +++ b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json @@ -1,11 +1,13 @@ [ + "Found 'package.json' at '/node_modules/foo/package.json'.", + "Found 'package.json' at '/node_modules/@types/bar/package.json'.", "======== Resolving module 'foo' from '/index.mts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", "File '/package.json' does not exist.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", - "Found 'package.json' at '/node_modules/foo/package.json'.", + "File '/node_modules/foo/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Matched 'exports' condition 'import'.", "Using 'exports' subpath '.' with target './index.mjs'.", @@ -55,7 +57,7 @@ "Failed to resolve under condition 'import'.", "Saw non-matching condition 'require'.", "Exiting conditional exports.", - "Found 'package.json' at '/node_modules/@types/bar/package.json'.", + "File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Saw non-matching condition 'require'.", "Exiting conditional exports.", @@ -113,6 +115,8 @@ "File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'.", "======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -125,6 +129,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -137,6 +143,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -148,6 +156,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -160,6 +170,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -171,6 +183,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -182,5 +196,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/scopedPackages.trace.json b/tests/baselines/reference/scopedPackages.trace.json index 7b4f3e8c2c385..f94a6d09a1ef5 100644 --- a/tests/baselines/reference/scopedPackages.trace.json +++ b/tests/baselines/reference/scopedPackages.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module '@cow/boy' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +32,21 @@ "File '/node_modules/@types/be__bop/e/z.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/be__bop/e/z.d.ts', result '/node_modules/@types/be__bop/e/z.d.ts'.", "======== Module name '@be/bop/e/z' was successfully resolved to '/node_modules/@types/be__bop/e/z.d.ts'. ========", + "File '/node_modules/@cow/boy/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@cow/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/be__bop/e/package.json' does not exist.", + "File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +59,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +86,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +100,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -89,6 +113,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -100,5 +126,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/scopedPackagesClassic.trace.json b/tests/baselines/reference/scopedPackagesClassic.trace.json index 2407dcda0f12f..a17d1ab8e8e58 100644 --- a/tests/baselines/reference/scopedPackagesClassic.trace.json +++ b/tests/baselines/reference/scopedPackagesClassic.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module '@see/saw' from '/a.ts'. ========", "Explicitly specified module resolution kind: 'Classic'.", "Searching all ancestor node_modules directories for preferred extensions: Declaration.", @@ -8,6 +9,12 @@ "File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'.", "======== Module name '@see/saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts'. ========", + "File '/node_modules/@types/see__saw/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -20,6 +27,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +41,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +54,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -55,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +81,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,5 +94,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/selfNameModuleAugmentation.trace.json b/tests/baselines/reference/selfNameModuleAugmentation.trace.json index 0a8d88bf3f2ed..697d5a011bd6b 100644 --- a/tests/baselines/reference/selfNameModuleAugmentation.trace.json +++ b/tests/baselines/reference/selfNameModuleAugmentation.trace.json @@ -1,9 +1,11 @@ [ + "File '/node_modules/acorn-walk/dist/package.json' does not exist.", + "Found 'package.json' at '/node_modules/acorn-walk/package.json'.", "======== Resolving module 'acorn-walk' from '/node_modules/acorn-walk/dist/walk.d.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/node_modules/acorn-walk/dist/package.json' does not exist.", - "Found 'package.json' at '/node_modules/acorn-walk/package.json'.", + "File '/node_modules/acorn-walk/dist/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups.", "Entering conditional exports.", "Matched 'exports' condition 'import'.", "Using 'exports' subpath '.' with target './dist/walk.mjs'.", @@ -22,10 +24,11 @@ "Exiting conditional exports.", "Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'.", "======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/walk.d.ts@8.2.0'. ========", + "File '/package.json' does not exist.", "======== Resolving module 'acorn-walk' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Resolving in CJS mode with conditions 'import', 'types'.", - "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'acorn-walk' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.", "Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", "File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups.", @@ -47,6 +50,8 @@ "Exiting conditional exports.", "Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'.", "======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/walk.d.ts@8.2.0'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +64,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +78,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +92,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +106,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +120,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -118,5 +133,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json b/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json index 47435970cf8f0..af808d436429d 100644 --- a/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json +++ b/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive '@scoped/typescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ========", "Resolving with primary search path '/types, /node_modules, /node_modules/@types'.", "File '/types/@scoped/typescache.d.ts' does not exist.", @@ -42,6 +43,20 @@ "File '/node_modules/@types/mangled__attypescache/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/mangled__attypescache/index.d.ts', result '/node_modules/@types/mangled__attypescache/index.d.ts'.", "======== Type reference directive '@mangled/attypescache' was successfully resolved to '/node_modules/@types/mangled__attypescache/index.d.ts', primary: true. ========", + "File '/types/@scoped/typescache/package.json' does not exist according to earlier cached lookups.", + "File '/types/@scoped/package.json' does not exist.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@scoped/nodemodulescache/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@scoped/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/mangled__attypescache/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +66,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -60,6 +77,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +87,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -77,6 +98,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -85,6 +108,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -93,5 +118,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json b/tests/baselines/reference/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json index 759edd68fc5fb..1d4bc7cad02ef 100644 --- a/tests/baselines/reference/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json +++ b/tests/baselines/reference/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json @@ -1,9 +1,12 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ========", "Resolving with primary search path '/typings'.", "File '/typings/phaser.d.ts' does not exist.", "Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder.", "======== Type reference directive 'phaser' was not resolved. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -13,6 +16,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -22,6 +27,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +38,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -40,6 +49,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +60,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -57,5 +70,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectiveWithTypeAsFile.trace.json b/tests/baselines/reference/typeReferenceDirectiveWithTypeAsFile.trace.json index 85b39822233f6..ebf0a553c2275 100644 --- a/tests/baselines/reference/typeReferenceDirectiveWithTypeAsFile.trace.json +++ b/tests/baselines/reference/typeReferenceDirectiveWithTypeAsFile.trace.json @@ -1,10 +1,17 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/node_modules/phaser/types'. ========", "Resolving with primary search path '/node_modules/phaser/types'.", "File '/node_modules/phaser/types/phaser.d.ts' exists - use it as a name resolution result.", "File '/node_modules/phaser/package.json' does not exist.", "Resolving real path for '/node_modules/phaser/types/phaser.d.ts', result '/node_modules/phaser/types/phaser.d.ts'.", "======== Type reference directive 'phaser' was successfully resolved to '/node_modules/phaser/types/phaser.d.ts', primary: true. ========", + "File '/node_modules/phaser/types/package.json' does not exist.", + "File '/node_modules/phaser/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -14,6 +21,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -23,6 +32,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +43,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +54,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +65,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,5 +75,7 @@ "Scoped package detected, looking in 'typescript__lib-scripthost'", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives1.trace.json b/tests/baselines/reference/typeReferenceDirectives1.trace.json index 3511def32e455..bdfff06bcf48d 100644 --- a/tests/baselines/reference/typeReferenceDirectives1.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives1.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,9 +7,14 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +25,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +37,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +61,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,5 +84,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives10.trace.json b/tests/baselines/reference/typeReferenceDirectives10.trace.json index 207c83eb07ac2..28e78c976a70d 100644 --- a/tests/baselines/reference/typeReferenceDirectives10.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives10.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,6 +7,9 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './ref' from '/app.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration.", @@ -13,9 +17,12 @@ "File '/ref.tsx' does not exist.", "File '/ref.d.ts' exists - use it as a name resolution result.", "======== Module name './ref' was successfully resolved to '/ref.d.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +33,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +45,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +57,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +69,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +81,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,5 +92,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives11.trace.json b/tests/baselines/reference/typeReferenceDirectives11.trace.json index 8808f1f82d363..b67eaf630e750 100644 --- a/tests/baselines/reference/typeReferenceDirectives11.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives11.trace.json @@ -1,9 +1,11 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './mod1' from '/mod2.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exists - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -11,6 +13,11 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -21,6 +28,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +40,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +52,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +64,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,5 +87,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives12.trace.json b/tests/baselines/reference/typeReferenceDirectives12.trace.json index e5d424d1a27ea..f39d5640e8beb 100644 --- a/tests/baselines/reference/typeReferenceDirectives12.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives12.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './main' from '/mod2.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration.", @@ -9,6 +10,8 @@ "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exists - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -16,12 +19,17 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './main' from '/mod1.ts'. ========", "Resolution for module './main' was found in cache from location '/'.", "======== Module name './main' was successfully resolved to '/main.ts'. ========", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +40,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +52,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +64,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +88,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,5 +99,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives13.trace.json b/tests/baselines/reference/typeReferenceDirectives13.trace.json index 207c83eb07ac2..28e78c976a70d 100644 --- a/tests/baselines/reference/typeReferenceDirectives13.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives13.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,6 +7,9 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './ref' from '/app.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration.", @@ -13,9 +17,12 @@ "File '/ref.tsx' does not exist.", "File '/ref.d.ts' exists - use it as a name resolution result.", "======== Module name './ref' was successfully resolved to '/ref.d.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +33,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +45,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +57,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +69,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +81,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,5 +92,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives2.trace.json b/tests/baselines/reference/typeReferenceDirectives2.trace.json index 816082ac3ff1a..dca01e4d88d57 100644 --- a/tests/baselines/reference/typeReferenceDirectives2.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives2.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,6 +7,11 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -16,6 +22,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +34,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +46,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +58,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +70,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -65,5 +81,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives3.trace.json b/tests/baselines/reference/typeReferenceDirectives3.trace.json index 3511def32e455..faa17e79b2ff2 100644 --- a/tests/baselines/reference/typeReferenceDirectives3.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives3.trace.json @@ -1,4 +1,6 @@ [ + "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,9 +8,14 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +26,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +38,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +50,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +62,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +74,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,5 +85,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives4.trace.json b/tests/baselines/reference/typeReferenceDirectives4.trace.json index 3511def32e455..faa17e79b2ff2 100644 --- a/tests/baselines/reference/typeReferenceDirectives4.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives4.trace.json @@ -1,4 +1,6 @@ [ + "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,9 +8,14 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +26,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +38,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +50,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +62,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +74,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,5 +85,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives5.trace.json b/tests/baselines/reference/typeReferenceDirectives5.trace.json index 207c83eb07ac2..28e78c976a70d 100644 --- a/tests/baselines/reference/typeReferenceDirectives5.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives5.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,6 +7,9 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './ref' from '/app.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration.", @@ -13,9 +17,12 @@ "File '/ref.tsx' does not exist.", "File '/ref.d.ts' exists - use it as a name resolution result.", "======== Module name './ref' was successfully resolved to '/ref.d.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +33,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -36,6 +45,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +57,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +69,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +81,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,5 +92,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives6.trace.json b/tests/baselines/reference/typeReferenceDirectives6.trace.json index 3511def32e455..faa17e79b2ff2 100644 --- a/tests/baselines/reference/typeReferenceDirectives6.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives6.trace.json @@ -1,4 +1,6 @@ [ + "File '/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,9 +8,14 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +26,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +38,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +50,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +62,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +74,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,5 +85,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives7.trace.json b/tests/baselines/reference/typeReferenceDirectives7.trace.json index 3511def32e455..bdfff06bcf48d 100644 --- a/tests/baselines/reference/typeReferenceDirectives7.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives7.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -6,9 +7,14 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -19,6 +25,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -29,6 +37,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -39,6 +49,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -49,6 +61,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +73,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,5 +84,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives8.trace.json b/tests/baselines/reference/typeReferenceDirectives8.trace.json index 8808f1f82d363..b67eaf630e750 100644 --- a/tests/baselines/reference/typeReferenceDirectives8.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives8.trace.json @@ -1,9 +1,11 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './mod1' from '/mod2.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exists - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -11,6 +13,11 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -21,6 +28,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -31,6 +40,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -41,6 +52,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +64,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -61,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -70,5 +87,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives9.trace.json b/tests/baselines/reference/typeReferenceDirectives9.trace.json index e5d424d1a27ea..f39d5640e8beb 100644 --- a/tests/baselines/reference/typeReferenceDirectives9.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives9.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module './main' from '/mod2.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration.", @@ -9,6 +10,8 @@ "Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration.", "File '/mod1.ts' exists - use it as a name resolution result.", "======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ========", "Resolving with primary search path '/types'.", "File '/types/lib.d.ts' does not exist.", @@ -16,12 +19,17 @@ "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/types/lib/package.json' does not exist according to earlier cached lookups.", + "File '/types/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module './main' from '/mod1.ts'. ========", "Resolution for module './main' was found in cache from location '/'.", "======== Module name './main' was successfully resolved to '/main.ts'. ========", "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +40,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +52,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -52,6 +64,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +76,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +88,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -81,5 +99,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json index f620afce87e93..81d7fa883b2b0 100644 --- a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json +++ b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json @@ -1,4 +1,7 @@ [ + "File '/foo/bar/package.json' does not exist.", + "File '/foo/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'xyz' from '/foo/bar/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +86,22 @@ "File '/node_modules/@types/dopey/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/dopey/index.d.ts', result '/node_modules/@types/dopey/index.d.ts'.", "======== Type reference directive 'dopey' was successfully resolved to '/node_modules/@types/dopey/index.d.ts', primary: true. ========", + "File '/foo/node_modules/@types/grumpy/package.json' does not exist according to earlier cached lookups.", + "File '/foo/node_modules/@types/package.json' does not exist.", + "File '/foo/node_modules/package.json' does not exist.", + "File '/foo/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/foo/node_modules/@types/sneezy/package.json' does not exist according to earlier cached lookups.", + "File '/foo/node_modules/@types/package.json' does not exist according to earlier cached lookups.", + "File '/foo/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/foo/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/dopey/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/foo/bar/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -97,6 +116,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/foo/bar/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -111,6 +132,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/foo/bar/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -123,6 +146,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/foo/bar/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -137,6 +162,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/foo/bar/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -149,6 +176,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/foo/bar/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -162,5 +191,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json index 5d97aa0870b61..da7f5b25d8fcd 100644 --- a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json +++ b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json @@ -1,4 +1,6 @@ [ + "File '/src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'xyz' from '/src/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -21,6 +23,12 @@ "File '/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/foo/index.d.ts', result '/node_modules/@types/foo/index.d.ts'.", "======== Type reference directive 'foo' was successfully resolved to '/node_modules/@types/foo/index.d.ts', primary: true. ========", + "File '/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -33,6 +41,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -45,6 +55,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +68,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +82,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -79,6 +95,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -90,5 +108,7 @@ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/src/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersions.ambientModules.trace.json b/tests/baselines/reference/typesVersions.ambientModules.trace.json index 702879601311c..89bbc0a0f8c43 100644 --- a/tests/baselines/reference/typesVersions.ambientModules.trace.json +++ b/tests/baselines/reference/typesVersions.ambientModules.trace.json @@ -1,4 +1,6 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'ext' from '/.src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +73,10 @@ "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'ext/other' was not resolved. ========", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +89,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +103,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +117,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +131,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -131,6 +145,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -143,6 +159,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -155,6 +173,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -167,6 +187,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -179,6 +201,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -191,6 +215,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -203,6 +229,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -215,6 +243,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -227,6 +257,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -239,6 +271,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -251,6 +285,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -263,6 +299,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -275,6 +313,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -287,6 +327,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -299,6 +341,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -311,6 +355,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -323,6 +369,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -335,6 +383,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -347,6 +397,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -359,6 +411,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -371,6 +425,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -383,6 +439,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -395,6 +453,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -407,6 +467,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -419,6 +481,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -431,6 +495,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -443,6 +509,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -455,6 +523,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -467,6 +537,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -479,6 +551,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -491,6 +565,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -503,6 +579,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -515,6 +593,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -527,6 +607,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -539,6 +621,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -551,6 +635,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -563,6 +649,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -575,6 +663,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -587,6 +677,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -599,6 +691,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -611,6 +705,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -623,6 +719,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -635,6 +733,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -647,6 +747,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -659,6 +761,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -671,6 +775,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -683,6 +789,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -695,6 +803,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -707,6 +817,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -719,6 +831,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -731,6 +845,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -743,6 +859,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -755,6 +873,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -767,6 +887,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -779,6 +901,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -791,6 +915,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -803,6 +929,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -815,6 +943,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -827,6 +957,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -839,6 +971,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -851,6 +985,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -863,6 +999,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -875,6 +1013,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -887,6 +1027,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -899,6 +1041,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -911,6 +1055,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -923,6 +1069,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -935,6 +1083,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -947,6 +1097,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -959,6 +1111,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -970,5 +1124,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersions.emptyTypes.trace.json b/tests/baselines/reference/typesVersions.emptyTypes.trace.json index 85d505c87bd75..329da7de27ea8 100644 --- a/tests/baselines/reference/typesVersions.emptyTypes.trace.json +++ b/tests/baselines/reference/typesVersions.emptyTypes.trace.json @@ -1,4 +1,8 @@ [ + "File '/a/ts3.1/package.json' does not exist.", + "Found 'package.json' at '/a/package.json'.", + "File '/b/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'a' from '/b/user.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'.", @@ -7,7 +11,7 @@ "File '/a.ts' does not exist.", "File '/a.tsx' does not exist.", "File '/a.d.ts' does not exist.", - "Found 'package.json' at '/a/package.json'.", + "File '/a/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' field with version-specific path mappings.", "'package.json' does not have a 'typings' field.", "'package.json' had a falsy 'types' field.", @@ -20,6 +24,8 @@ "File '/a/ts3.1/index.tsx' does not exist.", "File '/a/ts3.1/index.d.ts' exists - use it as a name resolution result.", "======== Module name 'a' was successfully resolved to '/a/ts3.1/index.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -33,6 +39,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +54,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +69,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +84,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -85,6 +99,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +114,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -111,6 +129,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -124,6 +144,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -137,6 +159,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -150,6 +174,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -163,6 +189,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -176,6 +204,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -189,6 +219,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -202,6 +234,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -215,6 +249,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -228,6 +264,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -241,6 +279,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -254,6 +294,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -267,6 +309,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -280,6 +324,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -293,6 +339,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -306,6 +354,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -319,6 +369,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -332,6 +384,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -345,6 +399,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -358,6 +414,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -371,6 +429,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -384,6 +444,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -397,6 +459,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -410,6 +474,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -423,6 +489,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -436,6 +504,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -449,6 +519,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -462,6 +534,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -475,6 +549,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -488,6 +564,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -501,6 +579,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -514,6 +594,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -527,6 +609,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -540,6 +624,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -553,6 +639,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -566,6 +654,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -579,6 +669,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -592,6 +684,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -605,6 +699,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -618,6 +714,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -631,6 +729,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -644,6 +744,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -657,6 +759,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -670,6 +774,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -683,6 +789,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -696,6 +804,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -709,6 +819,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -722,6 +834,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -735,6 +849,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -748,6 +864,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -761,6 +879,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -774,6 +894,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -787,6 +909,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -800,6 +924,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -813,6 +939,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -826,6 +954,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -839,6 +969,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -852,6 +984,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -865,6 +999,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -878,6 +1014,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -891,6 +1029,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -904,6 +1044,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -917,6 +1059,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -930,6 +1074,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -943,6 +1089,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -956,6 +1104,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -969,6 +1119,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -982,6 +1134,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -994,5 +1148,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersions.justIndex.trace.json b/tests/baselines/reference/typesVersions.justIndex.trace.json index 6e30aa01116de..107cb19c7d5c9 100644 --- a/tests/baselines/reference/typesVersions.justIndex.trace.json +++ b/tests/baselines/reference/typesVersions.justIndex.trace.json @@ -1,4 +1,8 @@ [ + "File '/a/ts3.1/package.json' does not exist.", + "Found 'package.json' at '/a/package.json'.", + "File '/b/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'a' from '/b/user.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'.", @@ -7,7 +11,7 @@ "File '/a.ts' does not exist.", "File '/a.tsx' does not exist.", "File '/a.d.ts' does not exist.", - "Found 'package.json' at '/a/package.json'.", + "File '/a/package.json' exists according to earlier cached lookups.", "'package.json' has a 'typesVersions' field with version-specific path mappings.", "'package.json' does not have a 'typings' field.", "'package.json' does not have a 'types' field.", @@ -20,6 +24,8 @@ "File '/a/ts3.1/index.tsx' does not exist.", "File '/a/ts3.1/index.d.ts' exists - use it as a name resolution result.", "======== Module name 'a' was successfully resolved to '/a/ts3.1/index.d.ts'. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -33,6 +39,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -46,6 +54,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,6 +69,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -72,6 +84,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -85,6 +99,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +114,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -111,6 +129,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -124,6 +144,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -137,6 +159,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -150,6 +174,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -163,6 +189,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -176,6 +204,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -189,6 +219,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -202,6 +234,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -215,6 +249,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -228,6 +264,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -241,6 +279,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -254,6 +294,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -267,6 +309,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -280,6 +324,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -293,6 +339,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -306,6 +354,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -319,6 +369,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -332,6 +384,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -345,6 +399,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -358,6 +414,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -371,6 +429,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -384,6 +444,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -397,6 +459,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -410,6 +474,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -423,6 +489,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -436,6 +504,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -449,6 +519,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -462,6 +534,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -475,6 +549,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -488,6 +564,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -501,6 +579,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -514,6 +594,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -527,6 +609,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -540,6 +624,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -553,6 +639,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -566,6 +654,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -579,6 +669,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -592,6 +684,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -605,6 +699,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -618,6 +714,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -631,6 +729,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -644,6 +744,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -657,6 +759,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -670,6 +774,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -683,6 +789,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -696,6 +804,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -709,6 +819,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -722,6 +834,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -735,6 +849,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -748,6 +864,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -761,6 +879,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -774,6 +894,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -787,6 +909,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -800,6 +924,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -813,6 +939,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -826,6 +954,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -839,6 +969,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -852,6 +984,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -865,6 +999,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -878,6 +1014,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -891,6 +1029,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -904,6 +1044,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -917,6 +1059,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -930,6 +1074,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -943,6 +1089,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -956,6 +1104,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -969,6 +1119,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -982,6 +1134,8 @@ "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -994,5 +1148,7 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersions.multiFile.trace.json b/tests/baselines/reference/typesVersions.multiFile.trace.json index b6d5c83566de1..aafb0bf717c66 100644 --- a/tests/baselines/reference/typesVersions.multiFile.trace.json +++ b/tests/baselines/reference/typesVersions.multiFile.trace.json @@ -1,4 +1,6 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'ext' from '/.src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +34,12 @@ "File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'.", "======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ========", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +52,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +66,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +80,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,6 +94,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -92,6 +108,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -104,6 +122,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -116,6 +136,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -128,6 +150,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -140,6 +164,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -152,6 +178,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -164,6 +192,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -176,6 +206,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -188,6 +220,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -200,6 +234,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -212,6 +248,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -224,6 +262,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -236,6 +276,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -248,6 +290,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -260,6 +304,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -272,6 +318,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -284,6 +332,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -296,6 +346,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -308,6 +360,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -320,6 +374,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -332,6 +388,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -344,6 +402,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -356,6 +416,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -368,6 +430,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -380,6 +444,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -392,6 +458,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -404,6 +472,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -416,6 +486,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -428,6 +500,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -440,6 +514,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -452,6 +528,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -464,6 +542,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -476,6 +556,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -488,6 +570,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -500,6 +584,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -512,6 +598,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -524,6 +612,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -536,6 +626,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -548,6 +640,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -560,6 +654,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -572,6 +668,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -584,6 +682,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -596,6 +696,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -608,6 +710,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -620,6 +724,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -632,6 +738,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -644,6 +752,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -656,6 +766,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -668,6 +780,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -680,6 +794,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -692,6 +808,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -704,6 +822,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -716,6 +836,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -728,6 +850,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -740,6 +864,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -752,6 +878,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -764,6 +892,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -776,6 +906,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -788,6 +920,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -800,6 +934,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -812,6 +948,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -824,6 +962,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -836,6 +976,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -848,6 +990,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -860,6 +1004,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -872,6 +1018,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -884,6 +1032,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -896,6 +1046,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -908,6 +1060,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -920,6 +1074,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -931,5 +1087,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json index 702879601311c..89bbc0a0f8c43 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json @@ -1,4 +1,6 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'ext' from '/.src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -71,6 +73,10 @@ "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'ext/other' was not resolved. ========", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -83,6 +89,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -95,6 +103,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -107,6 +117,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +131,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -131,6 +145,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -143,6 +159,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -155,6 +173,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -167,6 +187,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -179,6 +201,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -191,6 +215,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -203,6 +229,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -215,6 +243,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -227,6 +257,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -239,6 +271,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -251,6 +285,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -263,6 +299,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -275,6 +313,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -287,6 +327,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -299,6 +341,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -311,6 +355,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -323,6 +369,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -335,6 +383,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -347,6 +397,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -359,6 +411,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -371,6 +425,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -383,6 +439,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -395,6 +453,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -407,6 +467,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -419,6 +481,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -431,6 +495,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -443,6 +509,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -455,6 +523,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -467,6 +537,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -479,6 +551,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -491,6 +565,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -503,6 +579,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -515,6 +593,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -527,6 +607,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -539,6 +621,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -551,6 +635,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -563,6 +649,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -575,6 +663,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -587,6 +677,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -599,6 +691,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -611,6 +705,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -623,6 +719,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -635,6 +733,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -647,6 +747,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -659,6 +761,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -671,6 +775,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -683,6 +789,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -695,6 +803,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -707,6 +817,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -719,6 +831,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -731,6 +845,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -743,6 +859,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -755,6 +873,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -767,6 +887,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -779,6 +901,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -791,6 +915,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -803,6 +929,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -815,6 +943,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -827,6 +957,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -839,6 +971,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -851,6 +985,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -863,6 +999,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -875,6 +1013,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -887,6 +1027,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -899,6 +1041,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -911,6 +1055,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -923,6 +1069,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -935,6 +1083,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -947,6 +1097,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -959,6 +1111,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -970,5 +1124,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json index b6d5c83566de1..aafb0bf717c66 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json @@ -1,4 +1,6 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'ext' from '/.src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +34,12 @@ "File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'.", "======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ========", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -44,6 +52,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -56,6 +66,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -68,6 +80,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -80,6 +94,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -92,6 +108,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -104,6 +122,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -116,6 +136,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -128,6 +150,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -140,6 +164,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -152,6 +178,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -164,6 +192,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -176,6 +206,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -188,6 +220,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -200,6 +234,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -212,6 +248,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -224,6 +262,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -236,6 +276,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -248,6 +290,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -260,6 +304,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -272,6 +318,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -284,6 +332,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -296,6 +346,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -308,6 +360,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -320,6 +374,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -332,6 +388,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -344,6 +402,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -356,6 +416,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -368,6 +430,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -380,6 +444,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -392,6 +458,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -404,6 +472,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -416,6 +486,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -428,6 +500,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -440,6 +514,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -452,6 +528,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -464,6 +542,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -476,6 +556,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -488,6 +570,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -500,6 +584,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -512,6 +598,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -524,6 +612,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -536,6 +626,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -548,6 +640,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -560,6 +654,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -572,6 +668,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -584,6 +682,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -596,6 +696,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -608,6 +710,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -620,6 +724,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -632,6 +738,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -644,6 +752,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -656,6 +766,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -668,6 +780,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -680,6 +794,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -692,6 +808,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -704,6 +822,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -716,6 +836,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -728,6 +850,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -740,6 +864,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -752,6 +878,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -764,6 +892,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -776,6 +906,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -788,6 +920,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -800,6 +934,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -812,6 +948,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -824,6 +962,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -836,6 +976,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -848,6 +990,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -860,6 +1004,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -872,6 +1018,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -884,6 +1032,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -896,6 +1046,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -908,6 +1060,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -920,6 +1074,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -931,5 +1087,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json index d599c9965da5d..41060c8d6406b 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -1,4 +1,6 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'ext' from '/.src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -32,6 +34,8 @@ "File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'.", "======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ========", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", "======== Resolving module '../' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, Declaration.", @@ -46,6 +50,8 @@ "File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist.", "File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result.", "======== Module name '../' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/s3.1/index.d.ts@1.0.0'. ========", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", "======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/other.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, Declaration.", @@ -54,6 +60,9 @@ "File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result.", "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", "======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ========", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -66,6 +75,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -78,6 +89,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -90,6 +103,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -102,6 +117,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -114,6 +131,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -126,6 +145,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -138,6 +159,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -150,6 +173,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -162,6 +187,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -174,6 +201,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -186,6 +215,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -198,6 +229,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -210,6 +243,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -222,6 +257,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -234,6 +271,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -246,6 +285,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -258,6 +299,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -270,6 +313,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -282,6 +327,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -294,6 +341,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -306,6 +355,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -318,6 +369,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -330,6 +383,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -342,6 +397,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -354,6 +411,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -366,6 +425,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -378,6 +439,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -390,6 +453,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -402,6 +467,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -414,6 +481,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -426,6 +495,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -438,6 +509,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -450,6 +523,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -462,6 +537,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -474,6 +551,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -486,6 +565,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -498,6 +579,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -510,6 +593,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -522,6 +607,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -534,6 +621,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -546,6 +635,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -558,6 +649,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -570,6 +663,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -582,6 +677,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -594,6 +691,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -606,6 +705,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -618,6 +719,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -630,6 +733,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -642,6 +747,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -654,6 +761,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -666,6 +775,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -678,6 +789,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -690,6 +803,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -702,6 +817,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -714,6 +831,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -726,6 +845,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -738,6 +859,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -750,6 +873,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -762,6 +887,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -774,6 +901,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -786,6 +915,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -798,6 +929,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -810,6 +943,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -822,6 +957,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -834,6 +971,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -846,6 +985,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -858,6 +999,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -870,6 +1013,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -882,6 +1027,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -894,6 +1041,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -906,6 +1055,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -918,6 +1069,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -930,6 +1083,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -942,6 +1097,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -953,5 +1110,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json index b2cb2d83e0c18..68ce8ebdff7a1 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -1,4 +1,6 @@ [ + "File '/.src/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'ext' from '/.src/main.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -30,6 +32,8 @@ "File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/.src/node_modules/ext/other.d.ts', result '/.src/node_modules/ext/other.d.ts'.", "======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ========", + "File '/.src/node_modules/ext/ts3.1/package.json' does not exist.", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", "======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, Declaration.", @@ -38,6 +42,9 @@ "File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result.", "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", "======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ========", + "File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,6 +57,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -62,6 +71,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -74,6 +85,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -86,6 +99,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -98,6 +113,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,6 +127,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -122,6 +141,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -134,6 +155,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -146,6 +169,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -158,6 +183,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -170,6 +197,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -182,6 +211,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -194,6 +225,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -206,6 +239,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/core' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -218,6 +253,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -230,6 +267,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -242,6 +281,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -254,6 +295,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -266,6 +309,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -278,6 +323,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/proxy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -290,6 +337,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -302,6 +351,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -314,6 +365,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/array-include' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -326,6 +379,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2016/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -338,6 +393,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -350,6 +407,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -362,6 +421,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -374,6 +435,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -386,6 +449,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -398,6 +463,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2017/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -410,6 +477,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -422,6 +491,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -434,6 +505,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -446,6 +519,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -458,6 +533,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -470,6 +547,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -482,6 +561,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -494,6 +575,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -506,6 +589,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/symbol' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -518,6 +603,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2019/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -530,6 +617,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/bigint' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -542,6 +631,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -554,6 +645,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/date' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -566,6 +659,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/number' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -578,6 +673,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -590,6 +687,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -602,6 +701,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -614,6 +715,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -626,6 +729,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -638,6 +743,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -650,6 +757,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/weakref' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -662,6 +771,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2021/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -674,6 +785,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -686,6 +799,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/error' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -698,6 +813,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -710,6 +827,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2022.sharedmemory.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -722,6 +841,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/sharedmemory' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -734,6 +855,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/string' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -746,6 +869,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2022/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -758,6 +883,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -770,6 +897,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -782,6 +911,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-es2023/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -794,6 +925,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/intl' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -806,6 +939,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -818,6 +953,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/disposable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -830,6 +967,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/promise' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/object' from '/.src/__lib_node_modules_lookup_lib.esnext.object.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/object' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -842,6 +981,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/object' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -854,6 +995,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/collection' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -866,6 +1009,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/array' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-esnext/regexp' from '/.src/__lib_node_modules_lookup_lib.esnext.regexp.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-esnext/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -878,6 +1023,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -890,6 +1037,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -902,6 +1051,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -914,6 +1065,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -926,6 +1079,8 @@ "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name '@typescript/lib-dom/iterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom/asynciterable' from '/.src/__lib_node_modules_lookup_lib.dom.asynciterable.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -937,5 +1092,7 @@ "Loading module '@typescript/lib-dom/asynciterable' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", - "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========" + "======== Module name '@typescript/lib-dom/asynciterable' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsLookup1.trace.json b/tests/baselines/reference/typingsLookup1.trace.json index ca05094980119..34f0b54b8debb 100644 --- a/tests/baselines/reference/typingsLookup1.trace.json +++ b/tests/baselines/reference/typingsLookup1.trace.json @@ -1,13 +1,20 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/a.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "File '/node_modules/@types/jquery/package.json' does not exist.", "File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========", + "File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'jquery' was found in cache from location '/'.", "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -17,6 +24,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +35,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +45,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +56,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +66,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,5 +76,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsLookup2.trace.json b/tests/baselines/reference/typingsLookup2.trace.json index 4433ceee06a74..d28412e8563b4 100644 --- a/tests/baselines/reference/typingsLookup2.trace.json +++ b/tests/baselines/reference/typingsLookup2.trace.json @@ -1,4 +1,7 @@ [ + "File '/package.json' does not exist.", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -8,6 +11,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -17,6 +22,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -25,6 +32,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +43,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -42,6 +53,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -50,5 +63,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsLookup3.trace.json b/tests/baselines/reference/typingsLookup3.trace.json index ca05094980119..34f0b54b8debb 100644 --- a/tests/baselines/reference/typingsLookup3.trace.json +++ b/tests/baselines/reference/typingsLookup3.trace.json @@ -1,13 +1,20 @@ [ + "File '/package.json' does not exist.", "======== Resolving type reference directive 'jquery', containing file '/a.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "File '/node_modules/@types/jquery/package.json' does not exist.", "File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'.", "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========", + "File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts'. ========", "Resolution for type reference directive 'jquery' was found in cache from location '/'.", "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -17,6 +24,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -26,6 +35,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -34,6 +45,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -43,6 +56,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -51,6 +66,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -59,5 +76,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsLookup4.trace.json b/tests/baselines/reference/typingsLookup4.trace.json index 746760f576fd5..1aa96de5eadde 100644 --- a/tests/baselines/reference/typingsLookup4.trace.json +++ b/tests/baselines/reference/typingsLookup4.trace.json @@ -1,4 +1,5 @@ [ + "File '/package.json' does not exist.", "======== Resolving module 'jquery' from '/a.ts'. ========", "Module resolution kind is not specified, using 'Node10'.", "Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -64,6 +65,11 @@ "File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'.", "======== Module name 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx'. ========", + "File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups.", + "File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups.", + "File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups.", + "File '/node_modules/@types/mquery/mquery/package.json' does not exist.", + "File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups.", "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups.", @@ -101,6 +107,8 @@ "File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'.", "======== Type reference directive 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -110,6 +118,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -119,6 +129,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -127,6 +139,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -136,6 +150,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -144,6 +160,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -152,5 +170,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsLookupAmd.trace.json b/tests/baselines/reference/typingsLookupAmd.trace.json index a60e37c92bea3..7e90aacb1ba5e 100644 --- a/tests/baselines/reference/typingsLookupAmd.trace.json +++ b/tests/baselines/reference/typingsLookupAmd.trace.json @@ -1,4 +1,7 @@ [ + "File '/x/y/package.json' does not exist.", + "File '/x/package.json' does not exist.", + "File '/package.json' does not exist.", "======== Resolving module 'b' from '/x/y/foo.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "File '/x/y/b.ts' does not exist.", @@ -17,6 +20,11 @@ "File '/x/node_modules/@types/b/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/x/node_modules/@types/b/index.d.ts', result '/x/node_modules/@types/b/index.d.ts'.", "======== Module name 'b' was successfully resolved to '/x/node_modules/@types/b/index.d.ts'. ========", + "File '/x/node_modules/@types/b/package.json' does not exist according to earlier cached lookups.", + "File '/x/node_modules/@types/package.json' does not exist.", + "File '/x/node_modules/package.json' does not exist.", + "File '/x/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module 'a' from '/x/node_modules/@types/b/index.d.ts'. ========", "Module resolution kind is not specified, using 'Classic'.", "File '/x/node_modules/@types/b/a.ts' does not exist.", @@ -43,12 +51,18 @@ "File '/node_modules/@types/a/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/a/index.d.ts', result '/node_modules/@types/a/index.d.ts'.", "======== Module name 'a' was successfully resolved to '/node_modules/@types/a/index.d.ts'. ========", + "File '/node_modules/@types/a/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving type reference directive 'a', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", "Resolving with primary search path '/node_modules/@types'.", "File '/node_modules/@types/a/package.json' does not exist according to earlier cached lookups.", "File '/node_modules/@types/a/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/a/index.d.ts', result '/node_modules/@types/a/index.d.ts'.", "======== Type reference directive 'a' was successfully resolved to '/node_modules/@types/a/index.d.ts', primary: true. ========", + "File '/.ts/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-es5' from '/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -58,6 +72,8 @@ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-es5' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -67,6 +83,8 @@ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -75,6 +93,8 @@ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-dom' from '/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -84,6 +104,8 @@ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-dom' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -92,6 +114,8 @@ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", "======== Resolving module '@typescript/lib-scripthost' from '/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -100,5 +124,7 @@ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.", "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", "Searching all ancestor node_modules directories for fallback extensions: JavaScript.", - "======== Module name '@typescript/lib-scripthost' was not resolved. ========" + "======== Module name '@typescript/lib-scripthost' was not resolved. ========", + "File '/.ts/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file From 11e57279fcce0313d1ed4b18a30c4fa2330c34ef Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 21 Mar 2024 11:46:11 -0700 Subject: [PATCH 04/12] Update unit test baselines --- ...le-declarations-from-non-modified-files.js | 19 + ...ule-resolutions-from-non-modified-files.js | 179 +- .../fetches-imports-after-npm-install.js | 10 + .../modules-and-globals-mixed-in-amd.js | 138 +- .../multiple-emitHelpers-in-all-projects.js | 2330 +++++ .../multiple-prologues-in-all-projects.js | 1762 ++++ .../prepend-reports-deprecation-error.js | 98 +- .../shebang-in-all-projects.js | 904 ++ .../amdModulesWithOut/stripInternal.js | 7559 +++++++++++++++++ .../triple-slash-refs-in-all-projects.js | 1043 +++ ...e-resolution-finds-original-source-file.js | 89 +- .../different-options-discrepancies.js | 90 +- ...-options-with-incremental-discrepancies.js | 60 +- ...-incremental-with-outFile-discrepancies.js | 100 +- ...t-options-with-incremental-with-outFile.js | 539 +- .../different-options-with-incremental.js | 386 +- ...rent-options-with-outFile-discrepancies.js | 150 +- .../different-options-with-outFile.js | 392 +- .../tsbuild/commandLine/different-options.js | 272 +- ...Only-false-on-commandline-discrepancies.js | 66 +- ...claration-and-incremental-discrepancies.js | 66 +- ...-incremental-with-outFile-discrepancies.js | 50 +- ...eclaration-and-incremental-with-outFile.js | 196 +- ...ndline-with-declaration-and-incremental.js | 216 +- ...-commandline-with-outFile-discrepancies.js | 100 +- ...nOnly-false-on-commandline-with-outFile.js | 294 +- ...mitDeclarationOnly-false-on-commandline.js | 220 +- ...rationOnly-on-commandline-discrepancies.js | 102 +- ...claration-and-incremental-discrepancies.js | 102 +- ...-incremental-with-outFile-discrepancies.js | 50 +- ...eclaration-and-incremental-with-outFile.js | 392 +- ...ndline-with-declaration-and-incremental.js | 472 +- ...-commandline-with-outFile-discrepancies.js | 150 +- ...arationOnly-on-commandline-with-outFile.js | 637 +- .../emitDeclarationOnly-on-commandline.js | 482 +- ...tax-errors-in-config-file-discrepancies.js | 18 +- .../reports-syntax-errors-in-config-file.js | 66 +- ...nce-and-both-extend-config-with-include.js | 44 +- ...th-projects-extends-config-with-include.js | 44 +- ...ter-initial-build-doesnt-build-anything.js | 48 +- .../when-solution-is-referenced-indirectly.js | 64 +- ...ugh-triple-slash-but-uses-no-references.js | 34 +- ...file-is-referenced-through-triple-slash.js | 87 +- ...d-inferred-type-from-referenced-project.js | 39 +- ...s-not-in-rootDir-at-the-import-location.js | 38 +- ...ng-setup-correctly-and-reports-no-error.js | 89 +- ...-emitDeclarationOnly-and-declarationMap.js | 70 +- ...import-project-with-emitDeclarationOnly.js | 70 +- ...mports-project-with-emitDeclarationOnly.js | 84 +- ...es-is-empty-and-references-are-provided.js | 16 +- .../extends/resolves-the-symlink-path.js | 16 +- ...ted-file-with-outFile-without-composite.js | 8 + .../deleted-file-without-composite.js | 8 + .../detects-deleted-file-discrepancies.js | 12 +- .../detects-deleted-file-with-outFile.js | 82 +- .../fileDelete/detects-deleted-file.js | 82 +- ...-transitive-module-with-isolatedModules.js | 123 +- .../inferred-type-from-transitive-module.js | 123 +- ...hange-in-signature-with-isolatedModules.js | 204 +- ...based-projects-and-emits-them-correctly.js | 40 +- ...ved-json-files-and-emits-them-correctly.js | 63 +- ...rojects-and-concatenates-them-correctly.js | 270 + ...s-merged-and-contains-late-bound-member.js | 88 +- .../with-config-with-redirection.js | 301 +- .../tsbuild/libraryResolution/with-config.js | 268 +- ...iffers-between-projects-for-shared-file.js | 12 +- ...project-correctly-with-preserveSymlinks.js | 41 +- ...-file-from-referenced-project-correctly.js | 41 +- ...t-resolution-options-referenced-project.js | 64 +- ...zed-module-specifiers-resolve-correctly.js | 70 +- .../semantic-errors-with-incremental.js | 32 +- .../noEmit/syntax-errors-with-incremental.js | 32 +- .../semantic-errors-with-incremental.js | 61 +- .../syntax-errors-with-incremental.js | 57 +- .../outFile/baseline-sectioned-sourcemaps.js | 231 +- .../outFile/builds-till-project-specified.js | 31 +- .../tsbuild/outFile/clean-projects.js | 111 +- .../outFile/cleans-till-project-specified.js | 111 +- .../non-module-projects-without-prepend.js | 97 +- ...al-flag-changes-between-non-dts-changes.js | 191 +- ...-in-tsbuildinfo-doesnt-match-ts-version.js | 222 +- ...erated-when-incremental-is-set-to-false.js | 71 +- ...-buildInfo-absence-results-in-new-build.js | 111 +- ...roject-is-not-composite-but-incremental.js | 111 +- ...t-composite-but-uses-project-references.js | 111 +- ...final-project-specifies-tsBuildInfoFile.js | 111 +- ...ot-change-but-its-modified-time-changes.js | 111 +- .../baseline-sectioned-sourcemaps.js | 2053 +++++ .../declarationMap-and-sourceMap-disabled.js | 1130 +++ .../emitHelpers-in-all-projects.js | 3304 +++++++ ...tHelpers-in-only-one-dependency-project.js | 2444 ++++++ .../multiple-emitHelpers-in-all-projects.js | 3677 ++++++++ ...tiple-emitHelpers-in-different-projects.js | 2699 ++++++ .../multiple-prologues-in-all-projects.js | 2983 +++++++ ...ultiple-prologues-in-different-projects.js | 2250 +++++ .../outfile-concat/shebang-in-all-projects.js | 2083 +++++ .../shebang-in-only-one-dependency-project.js | 1525 ++++ .../outfile-concat/strict-in-all-projects.js | 2766 ++++++ .../strict-in-one-dependency.js | 2109 +++++ ...hen-internal-is-inside-another-internal.js | 1507 ++++ ...en-one-two-three-are-prepended-in-order.js | 1500 ++++ .../stripInternal-jsdoc-style-comment.js | 4151 +++++++++ ...en-one-two-three-are-prepended-in-order.js | 1015 +++ ...-jsdoc-style-with-comments-emit-enabled.js | 3884 +++++++++ ...l-when-few-members-of-enum-are-internal.js | 1697 ++++ ...en-one-two-three-are-prepended-in-order.js | 2034 +++++ ...nal-when-prepend-is-completely-internal.js | 322 + ...en-one-two-three-are-prepended-in-order.js | 1500 ++++ ...tripInternal-with-comments-emit-enabled.js | 4254 ++++++++++ .../tsbuild/outfile-concat/stripInternal.js | 4705 ++++++++++ .../triple-slash-refs-in-all-projects.js | 2360 +++++ .../triple-slash-refs-in-one-project.js | 1600 ++++ ...-source-files-are-empty-in-the-own-file.js | 1516 ++++ ...otDir-is-not-specified-and-is-composite.js | 16 +- ...iles-belong-to-rootDir-and-is-composite.js | 44 +- .../builds-correctly.js | 38 +- ...nfo-file-because-no-rootDir-in-the-base.js | 16 +- ...reports-error-for-same-tsbuildinfo-file.js | 16 +- ...eports-no-error-when-tsbuildinfo-differ.js | 38 +- .../build-with-custom-transformers.js | 34 +- .../files-containing-json-file.js | 16 +- ...ting-json-module-from-project-reference.js | 26 +- .../resolveJsonModule/include-and-files.js | 16 +- ...r-include-and-file-name-matches-ts-file.js | 16 +- ...nclude-of-json-along-with-other-include.js | 16 +- .../include-only-with-json-not-in-rootDir.js | 16 +- ...out-rootDir-but-outside-configDirectory.js | 16 +- .../include-only-without-outDir.js | 16 +- .../tsbuild/resolveJsonModule/include-only.js | 17 +- .../tsbuild/resolveJsonModule/sourcemap.js | 16 +- .../resolveJsonModule/without-outDir.js | 16 +- ...nsecutive-and-non-consecutive-are-mixed.js | 140 +- .../roots/when-files-are-not-consecutive.js | 52 +- ...hen-multiple-root-files-are-consecutive.js | 62 +- .../when-two-root-files-are-consecutive.js | 38 +- .../always-builds-under-with-force-option.js | 95 +- .../building-using-buildReferencedProject.js | 58 +- ...uilding-using-getNextInvalidatedProject.js | 95 +- ...rectly-when-declarationDir-is-specified.js | 95 +- ...ilds-correctly-when-outDir-is-specified.js | 95 +- .../sample1/builds-till-project-specified.js | 58 +- .../can-detect-when-and-what-to-rebuild.js | 155 +- ...t-in-not-build-order-doesnt-throw-error.js | 95 +- .../sample1/cleans-till-project-specified.js | 95 +- ...ojects-if-upstream-projects-have-errors.js | 59 +- .../reference/tsbuild/sample1/explainFiles.js | 218 +- ...it-would-skip-builds-during-a-dry-build.js | 95 +- .../sample1/invalidates-projects-correctly.js | 192 +- .../tsbuild/sample1/listEmittedFiles.js | 218 +- .../reference/tsbuild/sample1/listFiles.js | 218 +- ...-in-tsbuildinfo-doesnt-match-ts-version.js | 190 +- ...uilds-from-start-if-force-option-is-set.js | 95 +- ...uilds-when-extended-config-file-changes.js | 132 +- .../sample1/removes-all-files-it-built.js | 95 +- ...ror-if-input-file-is-missing-with-force.js | 22 +- .../reports-error-if-input-file-is-missing.js | 22 +- .../reference/tsbuild/sample1/sample.js | 285 +- .../tsbuild/sample1/tsbuildinfo-has-error.js | 21 +- .../when-declaration-option-changes.js | 58 +- .../sample1/when-declarationMap-changes.js | 151 +- .../when-esModuleInterop-option-changes.js | 132 +- ...ot-change-but-its-modified-time-changes.js | 95 +- .../when-logic-specifies-tsBuildInfoFile.js | 95 +- .../sample1/when-module-option-changes.js | 60 +- .../sample1/when-target-option-changes.js | 74 +- ...roject-uses-different-module-resolution.js | 39 +- .../transitiveReferences/builds-correctly.js | 39 +- ...de-resolution-with-external-module-name.js | 33 +- .../reports-syntax-errors-in-config-file.js | 82 +- .../demo/updates-with-bad-reference.js | 89 +- .../demo/updates-with-circular-reference.js | 89 +- .../with-config-with-redirection.js | 334 +- .../libraryResolution/with-config.js | 298 +- ...for-changes-to-package-json-main-fields.js | 209 +- ...se-different-module-resolution-settings.js | 128 +- ...n-no-files-are-emitted-with-incremental.js | 63 +- ...when-watching-when-no-files-are-emitted.js | 16 + ...mit-any-files-on-error-with-incremental.js | 137 +- .../does-not-emit-any-files-on-error.js | 22 + .../creates-solution-in-watch-mode.js | 117 +- .../incremental-updates-in-verbose-mode.js | 214 +- .../when-file-with-no-error-changes.js | 84 +- ...ing-errors-only-changed-file-is-emitted.js | 84 +- .../when-file-with-no-error-changes.js | 64 +- ...ixing-error-files-all-files-are-emitted.js | 63 +- .../when-preserveWatchOutput-is-not-used.js | 175 +- ...veWatchOutput-is-passed-on-command-line.js | 175 +- ...e-of-program-emit-with-outDir-specified.js | 98 +- ...r-recompilation-because-of-program-emit.js | 98 +- .../programUpdates/tsbuildinfo-has-error.js | 29 +- ...-references-watches-only-those-projects.js | 78 +- ...tches-config-files-that-are-not-present.js | 147 +- ...e-down-stream-project-and-then-fixes-it.js | 68 +- ...ncing-project-even-for-non-local-change.js | 628 ++ ...le-is-added,-and-its-subsequent-updates.js | 207 +- ...hanges-and-reports-found-errors-message.js | 402 +- ...not-start-build-of-referencing-projects.js | 145 +- .../with-outFile-and-non-local-change.js | 148 +- ...le-is-added,-and-its-subsequent-updates.js | 207 +- ...hanges-and-reports-found-errors-message.js | 402 +- ...not-start-build-of-referencing-projects.js | 145 +- ...project-with-extended-config-is-removed.js | 58 +- ...hen-noUnusedParameters-changes-to-false.js | 16 + .../works-with-extended-source-files.js | 144 +- ...hen-there-are-23-projects-in-a-solution.js | 514 +- ...when-there-are-3-projects-in-a-solution.js | 102 +- ...when-there-are-5-projects-in-a-solution.js | 138 +- ...when-there-are-8-projects-in-a-solution.js | 224 +- .../publicApi/with-custom-transformers.js | 70 +- .../reexport/Reports-errors-correctly.js | 92 +- ...e-projects-with-single-watcher-per-file.js | 78 + .../when-emitting-buildInfo.js | 102 +- .../tsc/cancellationToken/when-using-state.js | 102 +- .../tsc/composite/converting-to-modules.js | 32 +- ...ther-symlinked-package-moduleCaseChange.js | 23 + ...age-with-indirect-link-moduleCaseChange.js | 14 + ...er-symlinked-package-with-indirect-link.js | 14 + ...gh-source-and-another-symlinked-package.js | 23 + .../tsc/extends/resolves-the-symlink-path.js | 16 +- ...ion-field-with-declaration-emit-enabled.js | 66 +- ...e-to-modifier-of-class-expression-field.js | 68 +- ...in-another-file-through-indirect-import.js | 68 +- ...s-global-through-export-in-another-file.js | 56 +- .../different-options-discrepancies.js | 90 +- ...-options-with-incremental-discrepancies.js | 60 +- ...-incremental-with-outFile-discrepancies.js | 100 +- ...t-options-with-incremental-with-outFile.js | 539 +- .../different-options-with-incremental.js | 386 +- ...rent-options-with-outFile-discrepancies.js | 150 +- .../different-options-with-outFile.js | 490 +- .../tsc/incremental/different-options.js | 340 +- ...-before-fixing-error-with-noEmitOnError.js | 41 +- .../generates-typerefs-correctly.js | 56 +- .../noEmit-changes-composite-discrepancies.js | 420 +- .../incremental/noEmit-changes-composite.js | 280 +- .../noEmit-changes-incremental-declaration.js | 280 +- .../incremental/noEmit-changes-incremental.js | 294 +- ...-initial-noEmit-composite-discrepancies.js | 42 +- ...t-changes-with-initial-noEmit-composite.js | 237 +- ...-initial-noEmit-incremental-declaration.js | 237 +- ...changes-with-initial-noEmit-incremental.js | 247 +- .../incremental/serializing-error-chains.js | 16 +- ...ault-lib-that-augments-the-global-scope.js | 16 +- .../tsc/incremental/tsbuildinfo-has-error.js | 21 +- ...en-declarationMap-changes-discrepancies.js | 18 +- ...hen-declarationMap-changes-with-outFile.js | 62 +- .../when-declarationMap-changes.js | 66 +- .../tsc/incremental/when-file-is-deleted.js | 38 +- ...le-is-added,-the-signatures-are-updated.js | 198 +- ...to-the-referenced-project-discrepancies.js | 36 +- ...file-is-added-to-the-referenced-project.js | 100 +- ...g-filename-for-buildinfo-on-commandline.js | 17 +- .../when-passing-rootDir-from-commandline.js | 17 +- ...when-passing-rootDir-is-in-the-tsconfig.js | 17 +- .../when-project-has-strict-true.js | 17 +- .../with-noEmitOnError-semantic-errors.js | 61 +- .../with-noEmitOnError-syntax-errors.js | 61 +- .../tsc/incremental/with-only-dts-files.js | 48 +- .../with-config-with-redirection.js | 129 +- .../tsc/libraryResolution/with-config.js | 117 +- .../without-config-with-redirection.js | 53 + .../tsc/libraryResolution/without-config.js | 41 + .../combined-with-incremental.js | 17 +- .../tsc/moduleResolution/alternateResult.js | 2 +- .../default-setup-was-created-correctly.js | 16 +- ...snt-infer-the-rootDir-from-source-paths.js | 16 +- ...rors-when-a-file-is-outside-the-rootdir.js | 22 +- ...ed-project-reference-doesnt-set-outFile.js | 138 + ...d-project-reference-output-doesnt-exist.js | 155 + .../errors-when-declaration-=-false.js | 16 +- ...rs-when-the-file-list-is-not-exhaustive.js | 22 +- ...hen-the-referenced-project-doesnt-exist.js | 16 +- ...eferenced-project-doesnt-have-composite.js | 16 +- ...g-when-module-reference-is-not-relative.js | 16 +- ...ce-error-when-the-input-file-is-missing.js | 16 +- .../redirects-to-the-output-dts-file.js | 23 +- ...ypes-found-doesn't-crash-under---strict.js | 23 +- ...th-no-backing-types-found-doesn't-crash.js | 23 +- ...ms-correctly-in-incremental-compilation.js | 6 + ...rrors-for-.d.ts-change-with-incremental.js | 128 +- .../errors-for-.d.ts-change.js | 4 + .../errors-for-.ts-change-with-incremental.js | 119 +- .../errors-for-.ts-change.js | 4 + ...el-import-that-changes-with-incremental.js | 169 +- ...g-a-deep-multilevel-import-that-changes.js | 4 + .../export-with-incremental.js | 200 +- .../no-circular-import/export.js | 10 + .../exports-with-incremental.js | 225 +- .../yes-circular-import/exports.js | 10 + .../with-noEmitOnError-with-incremental.js | 131 +- .../with-noEmitOnError.js | 10 + ...rrors-for-.d.ts-change-with-incremental.js | 124 +- .../errors-for-.d.ts-change.js | 4 + .../errors-for-.ts-change-with-incremental.js | 116 +- .../errors-for-.ts-change.js | 4 + ...el-import-that-changes-with-incremental.js | 164 +- ...g-a-deep-multilevel-import-that-changes.js | 4 + .../export-with-incremental.js | 194 +- .../no-circular-import/export.js | 10 + .../exports-with-incremental.js | 218 +- .../yes-circular-import/exports.js | 10 + .../with-noEmitOnError-with-incremental.js | 128 +- .../with-noEmitOnError.js | 10 + ...rrors-for-.d.ts-change-with-incremental.js | 128 +- .../errors-for-.d.ts-change.js | 4 + .../errors-for-.ts-change-with-incremental.js | 121 +- .../errors-for-.ts-change.js | 4 + ...el-import-that-changes-with-incremental.js | 175 +- ...g-a-deep-multilevel-import-that-changes.js | 4 + .../export-with-incremental.js | 208 +- .../no-circular-import/export.js | 10 + .../exports-with-incremental.js | 235 +- .../yes-circular-import/exports.js | 10 + .../with-noEmitOnError-with-incremental.js | 131 +- .../default/with-noEmitOnError.js | 10 + ...rrors-for-.d.ts-change-with-incremental.js | 124 +- .../errors-for-.d.ts-change.js | 4 + .../errors-for-.ts-change-with-incremental.js | 116 +- .../errors-for-.ts-change.js | 4 + ...el-import-that-changes-with-incremental.js | 164 +- ...g-a-deep-multilevel-import-that-changes.js | 4 + .../export-with-incremental.js | 194 +- .../no-circular-import/export.js | 10 + .../exports-with-incremental.js | 218 +- .../yes-circular-import/exports.js | 10 + .../with-noEmitOnError-with-incremental.js | 128 +- .../defaultAndD/with-noEmitOnError.js | 10 + ...rrors-for-.d.ts-change-with-incremental.js | 128 +- .../errors-for-.d.ts-change.js | 4 + .../errors-for-.ts-change-with-incremental.js | 125 +- .../errors-for-.ts-change.js | 4 + ...el-import-that-changes-with-incremental.js | 181 +- ...g-a-deep-multilevel-import-that-changes.js | 4 + .../export-with-incremental.js | 215 +- .../no-circular-import/export.js | 10 + .../exports-with-incremental.js | 243 +- .../yes-circular-import/exports.js | 10 + .../with-noEmitOnError-with-incremental.js | 131 +- .../isolatedModules/with-noEmitOnError.js | 10 + ...rrors-for-.d.ts-change-with-incremental.js | 124 +- .../errors-for-.d.ts-change.js | 4 + .../errors-for-.ts-change-with-incremental.js | 116 +- .../errors-for-.ts-change.js | 4 + ...el-import-that-changes-with-incremental.js | 164 +- ...g-a-deep-multilevel-import-that-changes.js | 4 + .../export-with-incremental.js | 194 +- .../no-circular-import/export.js | 10 + .../exports-with-incremental.js | 218 +- .../yes-circular-import/exports.js | 10 + .../with-noEmitOnError-with-incremental.js | 128 +- .../isolatedModulesAndD/with-noEmitOnError.js | 10 + .../extends/resolves-the-symlink-path.js | 25 +- .../jsxImportSource-option-changed.js | 6 + ...n-Windows-style-drive-root-is-lowercase.js | 2 + ...n-Windows-style-drive-root-is-uppercase.js | 2 + ...ry-symlink-target-and-import-match-disk.js | 6 + ...le-symlink-target-and-import-match-disk.js | 4 + ...nging-module-name-with-different-casing.js | 4 + ...target-matches-disk-but-import-does-not.js | 6 + ...target-matches-disk-but-import-does-not.js | 4 + ...link-target,-and-disk-are-all-different.js | 6 + ...link-target,-and-disk-are-all-different.js | 4 + ...link-target-agree-but-do-not-match-disk.js | 6 + ...link-target-agree-but-do-not-match-disk.js | 4 + ...k-but-directory-symlink-target-does-not.js | 6 + ...s-disk-but-file-symlink-target-does-not.js | 4 + ...ative-information-file-location-changes.js | 4 + ...hen-renaming-file-with-different-casing.js | 4 + .../with-nodeNext-resolution.js | 2 - ...editing-module-augmentation-incremental.js | 61 +- .../editing-module-augmentation-watch.js | 97 +- ...lpers-backing-types-removed-incremental.js | 40 +- ...portHelpers-backing-types-removed-watch.js | 12 + ...al-with-circular-references-incremental.js | 76 +- ...remental-with-circular-references-watch.js | 88 +- ...tSource-backing-types-added-incremental.js | 40 +- ...xImportSource-backing-types-added-watch.js | 54 +- ...ource-backing-types-removed-incremental.js | 40 +- ...mportSource-backing-types-removed-watch.js | 56 +- ...ImportSource-option-changed-incremental.js | 47 +- .../jsxImportSource-option-changed-watch.js | 65 +- .../own-file-emit-with-errors-incremental.js | 47 +- .../own-file-emit-with-errors-watch.js | 59 +- ...wn-file-emit-without-errors-incremental.js | 47 +- .../own-file-emit-without-errors-watch.js | 59 +- .../with---out-incremental.js | 31 +- .../module-compilation/with---out-watch.js | 35 +- .../own-file-emit-with-errors-incremental.js | 44 +- .../own-file-emit-with-errors-watch.js | 44 +- ...eters-that-are-not-relative-incremental.js | 44 +- ...-parameters-that-are-not-relative-watch.js | 44 +- ...without-commandline-options-incremental.js | 44 +- .../without-commandline-options-watch.js | 44 +- .../incremental/tsbuildinfo-has-error.js | 17 +- ...declaration-file-is-deleted-incremental.js | 38 +- ...lobal-declaration-file-is-deleted-watch.js | 38 +- .../incremental/with---out-incremental.js | 31 +- .../tscWatch/incremental/with---out-watch.js | 31 +- .../with-config-with-redirection.js | 1204 ++- .../tscWatch/libraryResolution/with-config.js | 1126 ++- .../without-config-with-redirection.js | 544 +- .../libraryResolution/without-config.js | 468 +- .../moduleResolution/alternateResult.js | 2 +- .../diagnostics-from-cache.js | 12 +- ...for-changes-to-package-json-main-fields.js | 48 + ...hould-remove-the-module-not-found-error.js | 12 + ...-root-files-has-changed-through-include.js | 12 + ...keys-differ-only-in-directory-seperator.js | 88 +- .../create-watch-without-config-file.js | 4 + ...tore-the-states-for-configured-projects.js | 12 + ...estore-the-states-for-inferred-projects.js | 18 + ...rors-correctly-with-file-not-in-rootDir.js | 4 + ...s-errors-correctly-with-isolatedModules.js | 4 + .../declarationDir-is-specified.js | 12 + ...-outDir-and-declarationDir-is-specified.js | 12 + .../when-outDir-is-specified.js | 12 + .../with-outFile.js | 12 + ...e-is-specified-with-declaration-enabled.js | 12 + .../without-outDir-or-outFile-is-specified.js | 12 + ...odule-resolution-changes-in-config-file.js | 8 + ...-emit-when-verbatimModuleSyntax-changes.js | 4 + ...on-emit-is-disabled-in-compiler-options.js | 4 + .../with-default-options.js | 4 + .../with-skipDefaultLibCheck.js | 4 + .../with-skipLibCheck.js | 4 + ...solution-when-resolveJsonModule-changes.js | 8 + ...owImportingTsExtensions`-of-config-file.js | 6 + .../when-changing-checkJs-of-config-file.js | 10 + ...n-creating-new-file-in-symlinked-folder.js | 25 + ...file-is-added-to-the-referenced-project.js | 100 +- ...-different-folders-with-no-files-clause.js | 440 +- ...nsitive-references-in-different-folders.js | 440 +- .../on-transitive-references.js | 361 +- ...n-declarationMap-changes-for-dependency.js | 136 +- ...roject-uses-different-module-resolution.js | 69 +- .../tscWatch/resolutionCache/caching-works.js | 24 + .../watch-with-configFile.js | 8 + .../watch-without-configFile.js | 10 + .../loads-missing-files-from-disk.js | 12 + .../reusing-type-ref-resolution.js | 325 +- .../scoped-package-installation.js | 101 + ...module-goes-missing-and-then-comes-back.js | 18 + .../with-modules-linked-to-sibling-folder.js | 8 + ...cluded-file-with-ambient-module-changes.js | 4 + ...-no-notification-from-fs-for-index-file.js | 35 + ...le-resolution-changes-to-ambient-module.js | 12 + ...der-that-already-contains-@types-folder.js | 18 + ...rogram-with-files-from-external-library.js | 10 + ...-prefers-declaration-file-over-document.js | 24 +- ...es-field-when-solution-is-already-built.js | 94 +- ...Symlinks-when-solution-is-already-built.js | 94 +- ...n-has-types-field-with-preserveSymlinks.js | 42 +- ...-package-when-solution-is-already-built.js | 94 +- ...Symlinks-when-solution-is-already-built.js | 94 +- ...th-scoped-package-with-preserveSymlinks.js | 42 +- ...son-has-types-field-with-scoped-package.js | 42 +- .../when-packageJson-has-types-field.js | 42 +- ...ubFolder-when-solution-is-already-built.js | 96 +- ...Symlinks-when-solution-is-already-built.js | 96 +- ...le-from-subFolder-with-preserveSymlinks.js | 44 +- ...-package-when-solution-is-already-built.js | 96 +- ...Symlinks-when-solution-is-already-built.js | 96 +- ...th-scoped-package-with-preserveSymlinks.js | 44 +- ...file-from-subFolder-with-scoped-package.js | 44 +- .../when-referencing-file-from-subFolder.js | 44 +- ...-project-when-solution-is-already-built.js | 95 +- .../with-simple-project.js | 44 +- ...not-implement-hasInvalidatedResolutions.js | 101 + ...st-implements-hasInvalidatedResolutions.js | 62 + ...noEmit-with-composite-with-emit-builder.js | 148 +- ...it-with-composite-with-semantic-builder.js | 148 +- ...nError-with-composite-with-emit-builder.js | 89 +- ...or-with-composite-with-semantic-builder.js | 89 +- .../watchApi/semantic-builder-emitOnlyDts.js | 58 +- ...createSemanticDiagnosticsBuilderProgram.js | 4 + ...n-works-when-returned-without-extension.js | 4 + ...ting-with-emitOnlyDtsFiles-with-outFile.js | 68 +- .../when-emitting-with-emitOnlyDtsFiles.js | 74 +- ...ing-useSourceOfProjectReferenceRedirect.js | 100 +- ...-host-implementing-getParsedCommandLine.js | 50 +- ...oject-when-there-is-no-config-file-name.js | 11 + ...tends-when-there-is-no-config-file-name.js | 11 + .../fsWatch/fsWatchWithTimestamp-false.js | 6 + .../fsWatch/fsWatchWithTimestamp-true.js | 6 + ...inode-when-rename-event-ends-with-tilde.js | 14 + ...e-occurs-when-file-is-still-on-the-disk.js | 14 + ...when-using-file-watching-thats-on-inode.js | 14 + ...e-occurs-when-file-is-still-on-the-disk.js | 6 + ...ymlinks-to-folders-in-recursive-folders.js | 31 + ...hronous-watch-directory-renaming-a-file.js | 18 + ...ory-with-outDir-and-declaration-enabled.js | 20 + .../with-non-synchronous-watch-directory.js | 48 + ...eDirectories-option-extendedDiagnostics.js | 15 + ...-directory-watching-extendedDiagnostics.js | 15 + ...ption-with-recursive-directory-watching.js | 10 + .../with-excludeDirectories-option.js | 10 + ...excludeFiles-option-extendedDiagnostics.js | 11 + .../watchOptions/with-excludeFiles-option.js | 6 + ...e-is-in-inferred-project-until-imported.js | 7 +- ...roviderProject-when-host-project-closes.js | 9 + ...-are-redirects-that-dont-actually-exist.js | 3 + ...pening-projects-for-find-all-references.js | 5 + ...s-on-AutoImportProviderProject-creation.js | 3 + ...covers-from-an-unparseable-package_json.js | 3 + ...ds-to-automatic-changes-in-node_modules.js | 24 + ...ponds-to-manual-changes-in-node_modules.js | 10 +- .../Responds-to-package_json-changes.js | 3 + ...der-when-program-structure-is-unchanged.js | 3 + ...een-AutoImportProvider-and-main-program.js | 3 + .../projects-already-inside-node_modules.js | 7 +- ...-added-later-through-finding-definition.js | 12 + ...olution-is-reused-from-different-folder.js | 24 + ...-FLLs-in-Classic-module-resolution-mode.js | 41 + ...der-FLLs-in-Node-module-resolution-mode.js | 41 + .../loads-missing-files-from-disk.js | 56 +- ...-when-timeout-occurs-after-installation.js | 9 + ...n-timeout-occurs-inbetween-installation.js | 9 + ...-file-with-case-insensitive-file-system.js | 49 + ...ig-file-with-case-sensitive-file-system.js | 49 + .../when-calling-goto-definition-of-module.js | 20 + ...n-creating-new-file-in-symlinked-folder.js | 25 + ...eive-event-for-the-@types-file-addition.js | 23 + .../install-package-when-serialized.js | 9 + .../tsserver/codeFix/install-package.js | 9 + ...it-in-project-with-module-with-dts-emit.js | 10 + .../emit-in-project-with-module.js | 10 + ...ed-from-two-different-drives-of-windows.js | 10 +- ...on-reflected-when-specifying-files-list.js | 14 + ...er-old-one-without-file-being-in-config.js | 21 + ...invoked,-ask-errors-on-it-after-old-one.js | 36 + ...re-old-one-without-file-being-in-config.js | 21 + ...nvoked,-ask-errors-on-it-before-old-one.js | 36 + ...er-old-one-without-file-being-in-config.js | 21 + ...invoked,-ask-errors-on-it-after-old-one.js | 30 + ...re-old-one-without-file-being-in-config.js | 21 + ...nvoked,-ask-errors-on-it-before-old-one.js | 30 + ...uses-parent-most-node_modules-directory.js | 18 + ...ject-if-it-is-referenced-from-root-file.js | 59 + ...ndle-@types-if-input-file-list-is-empty.js | 6 + ...odule-resolution-changes-in-config-file.js | 13 + ...gured-project-does-not-contain-the-file.js | 59 + ...re-open-detects-correct-default-project.js | 23 + ...-orphan,-and-orphan-script-info-changes.js | 38 +- ...he-source-file-if-script-info-is-orphan.js | 38 +- ...s-file-is-included-by-module-resolution.js | 9 + ...n-large-js-file-is-included-by-tsconfig.js | 9 + ...s-file-is-included-by-module-resolution.js | 9 + ...n-large-ts-file-is-included-by-tsconfig.js | 9 + ...g-file-when-using-default-event-handler.js | 6 + ...ed-config-file-when-using-event-handler.js | 6 + ...g-file-when-using-default-event-handler.js | 6 + ...he-config-file-when-using-event-handler.js | 6 + ...sabled-when-using-default-event-handler.js | 6 + ...ct-is-disabled-when-using-event-handler.js | 6 + ...-false-when-using-default-event-handler.js | 6 + ...oject-is-false-when-using-event-handler.js | 6 + ...opened-when-using-default-event-handler.js | 6 + ...file-is-opened-when-using-event-handler.js | 6 + ...direct-when-using-default-event-handler.js | 17 + ...erenceRedirect-when-using-event-handler.js | 17 + ...roject-when-using-default-event-handler.js | 17 + ...cation-project-when-using-event-handler.js | 17 + ...n-file-when-using-default-event-handler.js | 14 + ...d-by-open-file-when-using-event-handler.js | 14 + ...he-session-and-project-is-at-root-level.js | 3 + ...ession-and-project-is-not-at-root-level.js | 38 + ...tself-if---isolatedModules-is-specified.js | 14 + ...self-if---out-or---outFile-is-specified.js | 14 + ...should-be-up-to-date-with-deleted-files.js | 14 + ...-be-up-to-date-with-newly-created-files.js | 14 + ...-to-date-with-the-reference-map-changes.js | 18 + ...session-and-should-contains-only-itself.js | 14 + ...should-detect-changes-in-non-root-files.js | 14 + ...nd-should-detect-non-existing-code-file.js | 22 + ...ion-and-should-detect-removed-code-file.js | 14 + ...ll-files-if-a-global-file-changed-shape.js | 14 + ...ould-return-cascaded-affected-file-list.js | 14 + ...fine-for-files-with-circular-references.js | 14 + ...et-in-the-session-and-when---out-is-set.js | 413 + ...n-the-session-and-when---outFile-is-set.js | 10 + ...in-the-session-and-when-adding-new-file.js | 14 + ...ssion-and-when-both-options-are-not-set.js | 10 + ...oundUpdate-and-project-is-at-root-level.js | 3 + ...Update-and-project-is-not-at-root-level.js | 38 + ...tself-if---isolatedModules-is-specified.js | 14 + ...self-if---out-or---outFile-is-specified.js | 14 + ...should-be-up-to-date-with-deleted-files.js | 14 + ...-be-up-to-date-with-newly-created-files.js | 14 + ...-to-date-with-the-reference-map-changes.js | 18 + ...dUpdate-and-should-contains-only-itself.js | 14 + ...should-detect-changes-in-non-root-files.js | 14 + ...nd-should-detect-non-existing-code-file.js | 22 + ...ate-and-should-detect-removed-code-file.js | 14 + ...ll-files-if-a-global-file-changed-shape.js | 14 + ...ould-return-cascaded-affected-file-list.js | 14 + ...fine-for-files-with-circular-references.js | 14 + ...nBackgroundUpdate-and-when---out-is-set.js | 418 + ...kgroundUpdate-and-when---outFile-is-set.js | 10 + ...ckgroundUpdate-and-when-adding-new-file.js | 14 + ...pdate-and-when-both-options-are-not-set.js | 10 + ...oundUpdate-and-project-is-at-root-level.js | 3 + ...Update-and-project-is-not-at-root-level.js | 38 + ...tself-if---isolatedModules-is-specified.js | 14 + ...self-if---out-or---outFile-is-specified.js | 14 + ...should-be-up-to-date-with-deleted-files.js | 14 + ...-be-up-to-date-with-newly-created-files.js | 14 + ...-to-date-with-the-reference-map-changes.js | 18 + ...dUpdate-and-should-contains-only-itself.js | 14 + ...should-detect-changes-in-non-root-files.js | 14 + ...nd-should-detect-non-existing-code-file.js | 22 + ...ate-and-should-detect-removed-code-file.js | 14 + ...ll-files-if-a-global-file-changed-shape.js | 14 + ...ould-return-cascaded-affected-file-list.js | 14 + ...fine-for-files-with-circular-references.js | 14 + ...nBackgroundUpdate-and-when---out-is-set.js | 440 + ...kgroundUpdate-and-when---outFile-is-set.js | 10 + ...ckgroundUpdate-and-when-adding-new-file.js | 14 + ...pdate-and-when-both-options-are-not-set.js | 10 + .../canUseWatchEvents-without-canUseEvents.js | 18 + .../events/watchEvents/canUseWatchEvents.js | 80 +- ...-was-updated-and-no-longer-has-the-file.js | 16 + ...nging-module-name-with-different-casing.js | 6 + ...ied-with-a-case-insensitive-file-system.js | 14 + ...hen-renaming-file-with-different-casing.js | 18 + .../autoImportCrossPackage_pathsAndSymlink.js | 8 + ...toImportCrossProject_paths_sharedOutDir.js | 6 + .../autoImportCrossProject_paths_stripSrc.js | 40 + .../autoImportCrossProject_paths_toDist.js | 40 + .../autoImportCrossProject_paths_toSrc.js | 40 + ...utoImportCrossProject_symlinks_stripSrc.js | 27 + .../autoImportCrossProject_symlinks_toDist.js | 27 + .../autoImportCrossProject_symlinks_toSrc.js | 27 + .../autoImportFileExcludePatterns1.js | 3 + .../autoImportFileExcludePatterns2.js | 3 + ...oImportFileExcludePatterns_networkPaths.js | 3 + .../autoImportFileExcludePatterns_symlinks.js | 3 + ...autoImportFileExcludePatterns_symlinks2.js | 6 + ...oImportFileExcludePatterns_windowsPaths.js | 3 + .../autoImportNodeModuleSymlinkRenamed.js | 5 + .../fourslashServer/autoImportProvider1.js | 5 + .../fourslashServer/autoImportProvider5.js | 24 + .../fourslashServer/autoImportProvider6.js | 8 + .../fourslashServer/autoImportProvider7.js | 11 + .../fourslashServer/autoImportProvider8.js | 11 + .../autoImportProvider_exportMap2.js | 11 + .../autoImportProvider_exportMap3.js | 8 +- .../autoImportProvider_globalTypingsCache.js | 3 + ...rtProvider_namespaceSameNameAsIntrinsic.js | 5 + .../autoImportProvider_pnpm.js | 18 + .../autoImportProvider_wildcardExports3.js | 8 + .../autoImportReExportFromAmbientModule.js | 11 + .../completionEntryDetailAcrossFiles01.js | 20 + .../completionEntryDetailAcrossFiles02.js | 20 + ...mport_addToNamedWithDifferentCacheValue.js | 5 + .../completionsImport_computedSymbolName.js | 8 + ...letionsImport_jsModuleExportsAssignment.js | 5 + .../declarationMapGoToDefinition.js | 20 + ...ionMapsGoToDefinitionRelativeSourceRoot.js | 25 + .../declarationMapsOutOfDateMapping.js | 13 + .../tsserver/fourslashServer/definition01.js | 6 + .../getFileReferences_server2.js | 7 + .../fourslashServer/goToSource15_bundler.js | 3 + .../goToSource2_nodeModulesWithTypes.js | 8 + .../goToSource3_nodeModulesAtTypes.js | 3 + .../goToSource6_sameAsGoToDef2.js | 5 + .../goToSource7_conditionallyMinified.js | 3 + .../goToSource8_mapFromAtTypes.js | 10 + .../goToSource9_mapFromAtTypes2.js | 10 + ...importNameCodeFix_externalNonRelateive2.js | 9 + .../importNameCodeFix_externalNonRelative1.js | 9 + .../importNameCodeFix_pnpm1.js | 55 + .../importStatementCompletions_pnpm1.js | 55 + ...portStatementCompletions_pnpmTransitive.js | 64 + ...portSuggestionsCache_moduleAugmentation.js | 8 + .../tsserver/fourslashServer/projectInfo01.js | 38 + .../tsserver/fourslashServer/projectInfo02.js | 6 + .../projectWithNonExistentFiles.js | 6 + .../fourslashServer/typedefinition01.js | 6 + ...excluding-node_modules-within-a-project.js | 9 + .../create-inferred-project.js | 6 + ...ting-inferred-project-has-no-root-files.js | 28 + .../with-config-with-redirection.js | 687 +- .../tsserver/libraryResolution/with-config.js | 593 +- ...when-referencing-file-from-another-file.js | 35 + ...t-to-2-if-the-project-has-js-root-files.js | 10 + .../moduleResolution/alternateResult.js | 14 - .../using-referenced-project-built.js | 128 +- .../using-referenced-project.js | 76 +- .../openfile/can-open-same-file-again.js | 9 + ...ject-even-if-project-refresh-is-pending.js | 9 + ...-external-files-with-config-file-reload.js | 10 + ...on-ts-extensions-with-wildcard-matching.js | 10 + ...criptKind-changes-for-the-external-file.js | 6 + ...-same-ambient-module-and-is-also-module.js | 18 + ...-when-timeout-occurs-after-installation.js | 30 + ...n-timeout-occurs-inbetween-installation.js | 30 + ...pened-right-after-closing-the-root-file.js | 62 + ...hen-json-is-root-file-found-by-tsconfig.js | 9 + ...json-is-not-root-file-found-by-tsconfig.js | 9 + ...-as-project-build-with-external-project.js | 53 +- ...-on-dependency-and-change-to-dependency.js | 31 + .../save-on-dependency-and-change-to-usage.js | 31 + ...pendency-and-local-change-to-dependency.js | 31 + ...on-dependency-and-local-change-to-usage.js | 31 + ...y-with-project-and-change-to-dependency.js | 31 + ...ndency-with-project-and-change-to-usage.js | 31 + ...-project-and-local-change-to-dependency.js | 31 + ...-with-project-and-local-change-to-usage.js | 31 + .../save-on-dependency-with-project.js | 31 + ...-usage-project-and-change-to-dependency.js | 23 + ...-with-usage-project-and-change-to-usage.js | 23 + ...-project-and-local-change-to-dependency.js | 23 + ...usage-project-and-local-change-to-usage.js | 23 + .../save-on-dependency-with-usage-project.js | 23 + .../save-on-dependency.js | 31 + .../save-on-usage-and-change-to-dependency.js | 23 + .../save-on-usage-and-change-to-usage.js | 23 + ...nd-local-change-to-dependency-with-file.js | 23 + ...on-usage-and-local-change-to-dependency.js | 23 + ...-and-local-change-to-usage-with-project.js | 23 + ...save-on-usage-and-local-change-to-usage.js | 23 + ...e-with-project-and-change-to-dependency.js | 23 + ...-usage-with-project-and-change-to-usage.js | 23 + .../save-on-usage-with-project.js | 23 + .../save-on-usage.js | 23 + ...-on-dependency-and-change-to-dependency.js | 12 + ...-save-on-dependency-and-change-to-usage.js | 12 + ...pendency-and-local-change-to-dependency.js | 12 + ...on-dependency-and-local-change-to-usage.js | 12 + ...y-with-project-and-change-to-dependency.js | 12 + ...ndency-with-project-and-change-to-usage.js | 12 + ...-project-and-local-change-to-dependency.js | 12 + ...-with-project-and-local-change-to-usage.js | 12 + ...pen-and-save-on-dependency-with-project.js | 12 + ...ject-is-not-open-and-save-on-dependency.js | 12 + ...save-on-usage-and-change-to-depenedency.js | 12 + ...n-and-save-on-usage-and-change-to-usage.js | 12 + ...on-usage-and-local-change-to-dependency.js | 12 + ...save-on-usage-and-local-change-to-usage.js | 12 + ...-with-project-and-change-to-depenedency.js | 12 + ...-usage-with-project-and-change-to-usage.js | 12 + ...-project-and-local-change-to-dependency.js | 12 + ...-with-project-and-local-change-to-usage.js | 12 + ...not-open-and-save-on-usage-with-project.js | 12 + ...y-project-is-not-open-and-save-on-usage.js | 12 + ...t-is-not-open-gerErr-with-sync-commands.js | 12 + ...n-dependency-project-is-not-open-getErr.js | 12 + ...cy-project-is-not-open-geterrForProject.js | 12 + ...-file-is-open-gerErr-with-sync-commands.js | 23 + ...-when-the-depedency-file-is-open-getErr.js | 23 + ...depedency-file-is-open-geterrForProject.js | 23 + .../ancestor-and-project-ref-management.js | 53 +- ...disableSourceOfProjectReferenceRedirect.js | 67 +- ...port-with-referenced-project-when-built.js | 67 +- .../auto-import-with-referenced-project.js | 21 + ...ssfully-find-references-with-out-option.js | 53 +- ...indirect-project-but-not-in-another-one.js | 102 + ...dProjectLoad-is-set-in-indirect-project.js | 121 + ...-if-disableReferencedProjectLoad-is-set.js | 63 + ...oes-not-error-on-container-only-project.js | 53 +- ...-are-disabled-and-a-decl-map-is-missing.js | 38 + ...-are-disabled-and-a-decl-map-is-present.js | 38 + ...s-are-enabled-and-a-decl-map-is-missing.js | 23 + ...s-are-enabled-and-a-decl-map-is-present.js | 23 + ...-are-disabled-and-a-decl-map-is-missing.js | 38 + ...-are-disabled-and-a-decl-map-is-present.js | 38 + ...s-are-enabled-and-a-decl-map-is-missing.js | 23 + ...s-are-enabled-and-a-decl-map-is-present.js | 23 + ...-are-disabled-and-a-decl-map-is-missing.js | 25 + ...-are-disabled-and-a-decl-map-is-present.js | 25 + ...s-are-enabled-and-a-decl-map-is-missing.js | 12 + ...s-are-enabled-and-a-decl-map-is-present.js | 12 + ...-are-disabled-and-a-decl-map-is-missing.js | 25 + ...-are-disabled-and-a-decl-map-is-present.js | 28 + ...s-are-enabled-and-a-decl-map-is-missing.js | 23 + ...s-are-enabled-and-a-decl-map-is-present.js | 23 + ...ding-references-in-overlapping-projects.js | 38 + ...solution-is-built-with-preserveSymlinks.js | 70 +- ...-and-has-index.ts-and-solution-is-built.js | 70 +- ...tion-is-not-built-with-preserveSymlinks.js | 18 + ...-has-index.ts-and-solution-is-not-built.js | 18 + ...solution-is-built-with-preserveSymlinks.js | 70 +- ...th-scoped-package-and-solution-is-built.js | 70 +- ...tion-is-not-built-with-preserveSymlinks.js | 18 + ...coped-package-and-solution-is-not-built.js | 18 + ...solution-is-built-with-preserveSymlinks.js | 73 +- ...le-from-subFolder-and-solution-is-built.js | 73 +- ...tion-is-not-built-with-preserveSymlinks.js | 21 + ...rom-subFolder-and-solution-is-not-built.js | 21 + ...solution-is-built-with-preserveSymlinks.js | 73 +- ...th-scoped-package-and-solution-is-built.js | 73 +- ...tion-is-not-built-with-preserveSymlinks.js | 21 + ...coped-package-and-solution-is-not-built.js | 21 + ...ject-is-directly-referenced-by-solution.js | 186 + ...ct-is-indirectly-referenced-by-solution.js | 240 + ...om-composite-and-non-composite-projects.js | 33 + ...nced-project-and-using-declaration-maps.js | 101 +- ...ot-file-is-file-from-referenced-project.js | 81 +- ...indirect-project-but-not-in-another-one.js | 156 + ...dProjectLoad-is-set-in-indirect-project.js | 157 + ...-if-disableReferencedProjectLoad-is-set.js | 95 + ...ces-open-file-through-project-reference.js | 243 + ...ct-is-indirectly-referenced-by-solution.js | 324 + ...nction-as-object-literal-property-types.js | 44 + ...row-function-as-object-literal-property.js | 34 + ...ss-when-using-arrow-function-assignment.js | 44 + ...s-when-using-method-of-class-expression.js | 44 + ...ness-when-using-object-literal-property.js | 44 + ...cts-are-open-and-one-project-references.js | 88 + ...ts-have-allowJs-and-emitDeclarationOnly.js | 18 + ...dts-changes-with-timeout-before-request.js | 60 +- .../dependency-dts-changes.js | 60 +- .../dependency-dts-created.js | 105 +- .../dependency-dts-deleted.js | 105 +- .../dependency-dts-not-present.js | 93 +- ...Map-changes-with-timeout-before-request.js | 60 +- .../dependency-dtsMap-changes.js | 60 +- .../dependency-dtsMap-created.js | 105 +- .../dependency-dtsMap-deleted.js | 105 +- .../dependency-dtsMap-not-present.js | 93 +- .../configHasNoReference/rename-locations.js | 93 +- ...ile-changes-with-timeout-before-request.js | 60 +- .../usage-file-changes.js | 60 +- ...dts-changes-with-timeout-before-request.js | 60 +- .../dependency-dts-changes.js | 60 +- .../dependency-dts-created.js | 105 +- .../dependency-dts-deleted.js | 105 +- .../dependency-dts-not-present.js | 93 +- ...Map-changes-with-timeout-before-request.js | 60 +- .../dependency-dtsMap-changes.js | 60 +- .../dependency-dtsMap-created.js | 105 +- .../dependency-dtsMap-deleted.js | 105 +- .../dependency-dtsMap-not-present.js | 93 +- ...rce-changes-with-timeout-before-request.js | 60 +- .../dependency-source-changes.js | 60 +- .../configWithReference/rename-locations.js | 93 +- ...ile-changes-with-timeout-before-request.js | 60 +- .../configWithReference/usage-file-changes.js | 60 +- .../when-projects-are-not-built.js | 54 + ...dts-changes-with-timeout-before-request.js | 60 +- .../dependency-dts-changes.js | 60 +- .../dependency-dts-created.js | 105 +- .../dependency-dts-deleted.js | 105 +- .../dependency-dts-not-present.js | 93 +- ...Map-changes-with-timeout-before-request.js | 60 +- .../dependency-dtsMap-changes.js | 60 +- .../dependency-dtsMap-created.js | 105 +- .../dependency-dtsMap-deleted.js | 105 +- .../dependency-dtsMap-not-present.js | 93 +- .../disabledSourceRef/rename-locations.js | 93 +- ...ile-changes-with-timeout-before-request.js | 60 +- .../disabledSourceRef/usage-file-changes.js | 60 +- ...dts-changes-with-timeout-before-request.js | 84 +- .../dependency-dts-changes.js | 84 +- .../dependency-dts-created.js | 161 +- .../dependency-dts-deleted.js | 203 +- .../dependency-dts-not-present.js | 129 +- ...Map-changes-with-timeout-before-request.js | 84 +- .../dependency-dtsMap-changes.js | 84 +- .../dependency-dtsMap-created.js | 171 +- .../dependency-dtsMap-deleted.js | 171 +- .../dependency-dtsMap-not-present.js | 151 +- .../goToDef-and-rename-locations.js | 151 +- ...ile-changes-with-timeout-before-request.js | 84 +- .../usage-file-changes.js | 84 +- ...dts-changes-with-timeout-before-request.js | 78 +- .../dependency-dts-changes.js | 78 +- .../dependency-dts-created.js | 149 +- .../dependency-dts-deleted.js | 149 +- .../dependency-dts-not-present.js | 133 +- ...Map-changes-with-timeout-before-request.js | 78 +- .../dependency-dtsMap-changes.js | 78 +- .../dependency-dtsMap-created.js | 149 +- .../dependency-dtsMap-deleted.js | 149 +- .../dependency-dtsMap-not-present.js | 133 +- ...rce-changes-with-timeout-before-request.js | 78 +- .../dependency-source-changes.js | 78 +- .../goToDef-and-rename-locations.js | 133 +- ...ile-changes-with-timeout-before-request.js | 78 +- .../configWithReference/usage-file-changes.js | 78 +- .../when-projects-are-not-built.js | 94 + ...dts-changes-with-timeout-before-request.js | 84 +- .../dependency-dts-changes.js | 84 +- .../dependency-dts-created.js | 161 +- .../dependency-dts-deleted.js | 203 +- .../dependency-dts-not-present.js | 129 +- ...Map-changes-with-timeout-before-request.js | 84 +- .../dependency-dtsMap-changes.js | 84 +- .../dependency-dtsMap-created.js | 171 +- .../dependency-dtsMap-deleted.js | 171 +- .../dependency-dtsMap-not-present.js | 151 +- .../goToDef-and-rename-locations.js | 151 +- ...ile-changes-with-timeout-before-request.js | 84 +- .../disabledSourceRef/usage-file-changes.js | 84 +- .../can-go-to-definition-correctly.js | 111 +- ...dts-changes-with-timeout-before-request.js | 67 +- .../dependency-dts-changes.js | 67 +- .../dependency-dts-created.js | 107 +- .../dependency-dts-deleted.js | 149 +- .../dependency-dts-not-present.js | 87 +- ...Map-changes-with-timeout-before-request.js | 67 +- .../dependency-dtsMap-changes.js | 67 +- .../dependency-dtsMap-created.js | 127 +- .../dependency-dtsMap-deleted.js | 127 +- .../dependency-dtsMap-not-present.js | 111 +- ...ile-changes-with-timeout-before-request.js | 67 +- .../usage-file-changes.js | 67 +- .../can-go-to-definition-correctly.js | 103 +- ...dts-changes-with-timeout-before-request.js | 59 +- .../dependency-dts-changes.js | 59 +- .../dependency-dts-created.js | 103 +- .../dependency-dts-deleted.js | 103 +- .../dependency-dts-not-present.js | 103 +- ...Map-changes-with-timeout-before-request.js | 59 +- .../dependency-dtsMap-changes.js | 59 +- .../dependency-dtsMap-created.js | 103 +- .../dependency-dtsMap-deleted.js | 103 +- .../dependency-dtsMap-not-present.js | 103 +- ...rce-changes-with-timeout-before-request.js | 59 +- .../dependency-source-changes.js | 59 +- ...ile-changes-with-timeout-before-request.js | 59 +- .../configWithReference/usage-file-changes.js | 59 +- .../when-projects-are-not-built.js | 64 + .../can-go-to-definition-correctly.js | 111 +- ...dts-changes-with-timeout-before-request.js | 67 +- .../dependency-dts-changes.js | 67 +- .../dependency-dts-created.js | 107 +- .../dependency-dts-deleted.js | 153 +- .../dependency-dts-not-present.js | 87 +- ...Map-changes-with-timeout-before-request.js | 67 +- .../dependency-dtsMap-changes.js | 67 +- .../dependency-dtsMap-created.js | 127 +- .../dependency-dtsMap-deleted.js | 127 +- .../dependency-dtsMap-not-present.js | 111 +- ...ile-changes-with-timeout-before-request.js | 67 +- .../disabledSourceRef/usage-file-changes.js | 67 +- ...-are-handled-correctly-on-watch-trigger.js | 9 + ...configured-project-that-will-be-removed.js | 72 + ...-and-closed-affecting-multiple-projects.js | 34 + ...directory-watch-invoke-on-file-creation.js | 48 + ...irectory-watch-invoke-on-open-file-save.js | 6 + ...configured-project-that-will-be-removed.js | 72 + ...Reload-but-has-svc-for-previous-version.js | 21 + ...t-provides-redirect-info-when-requested.js | 21 + ...updates-to-redirect-info-when-requested.js | 21 + ...resolved-and-redirect-info-is-requested.js | 6 + ...e-configuration-file-cannot-be-resolved.js | 6 + .../projectsWithReferences/sample-project.js | 15 + ...es-with-deleting-referenced-config-file.js | 46 + ...ing-transitively-referenced-config-file.js | 18 + ...ces-with-edit-in-referenced-config-file.js | 54 + ...ive-references-with-edit-on-config-file.js | 54 + ...ansitive-references-with-non-local-edit.js | 18 + ...es-with-deleting-referenced-config-file.js | 46 + ...ing-transitively-referenced-config-file.js | 18 + ...les-with-edit-in-referenced-config-file.js | 54 + ...-without-files-with-edit-on-config-file.js | 54 + ...ences-without-files-with-non-local-edit.js | 18 + .../reloadProjects/configured-project.js | 72 + .../external-project-with-config-file.js | 76 + .../reloadProjects/external-project.js | 76 + .../reloadProjects/inferred-project.js | 72 + .../with-symlinks-and-case-difference.js | 14 +- ...unnecessary-lookup-invalidation-on-save.js | 45 + ...an-load-typings-that-are-proper-modules.js | 26 + ...le-name-from-files-in-different-folders.js | 177 + ...e-module-name-from-files-in-same-folder.js | 111 + ...ative-module-name-from-inferred-project.js | 177 + .../not-sharing-across-references.js | 37 + .../npm-install-@types-works.js | 23 + ...le-name-from-files-in-different-folders.js | 159 + ...e-module-name-from-files-in-same-folder.js | 87 + ...tore-the-states-for-configured-projects.js | 22 + ...estore-the-states-for-inferred-projects.js | 18 + .../sharing-across-references.js | 37 + ...hould-remove-the-module-not-found-error.js | 10 + .../resolutionCache/when-resolution-fails.js | 12 + .../when-resolves-to-ambient-module.js | 12 + ...wild-card-directories-in-config-project.js | 12 + .../closed-script-infos.js | 12 + ...ectly-when-typings-are-added-or-removed.js | 67 + ...tion-when-project-compiles-from-sources.js | 55 + ...s-in-typings-folder-and-then-recompiles.js | 21 + ...mpiles-after-deleting-generated-folders.js | 67 + ...ping-when-project-compiles-from-sources.js | 55 + ...s-in-typings-folder-and-then-recompiles.js | 41 + ...mpiles-after-deleting-generated-folders.js | 87 + ...name-in-common-file-renames-all-project.js | 36 + .../when-not-symlink-but-differs-in-casing.js | 53 +- ...ences-resolution-after-program-creation.js | 3 + ...emoved-and-added-with-different-content.js | 26 + .../tsserver/resolves-the-symlink-path.js | 9 + .../prefer-typings-in-second-pass.js | 15 + .../install-typings-for-unresolved-imports.js | 23 + ...date-the-resolutions-with-trimmed-names.js | 30 + .../invalidate-the-resolutions.js | 27 + .../typingsInstaller/malformed-packagejson.js | 21 + .../typingsInstaller/progress-notification.js | 21 + ...utions-pointing-to-js-on-typing-install.js | 39 + .../typingsInstaller/telemetry-events.js | 21 + .../external-project-watch-options-errors.js | 25 + ...ect-watch-options-in-host-configuration.js | 25 + .../external-project-watch-options.js | 25 + .../inferred-project-watch-options-errors.js | 15 + ...ect-watch-options-in-host-configuration.js | 15 + .../inferred-project-watch-options.js | 15 + .../perVolumeCasing-and-new-file-addition.js | 1 + .../project-with-ascii-file-names-with-i.js | 6 + .../project-with-ascii-file-names.js | 6 + .../project-with-unicode-file-names.js | 6 + ...files-starting-with-dot-in-node_modules.js | 6 + ...polling-when-file-is-added-to-subfolder.js | 14 + ...rectory-when-file-is-added-to-subfolder.js | 10 + ...tchFile-when-file-is-added-to-subfolder.js | 10 + ...ere-workspaces-folder-is-hosted-at-root.js | 103 + ...en-watchFile-is-single-watcher-per-file.js | 6 + ...excludeDirectories-option-in-configFile.js | 15 + ...ludeDirectories-option-in-configuration.js | 15 + 1018 files changed, 132648 insertions(+), 11764 deletions(-) create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js create 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/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js create mode 100644 tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js create mode 100644 tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js create mode 100644 tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js create mode 100644 tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js index e0a2cb5de0790..fea620a833358 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js @@ -38,6 +38,9 @@ File: /a/b/node.d.ts declare module 'fs' {} +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module 'fs' from '/a/b/app.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/a/b/fs.ts' does not exist. @@ -66,6 +69,10 @@ File '/a/fs.jsx' does not exist. File '/fs.js' does not exist. File '/fs.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist. MissingPaths:: [ "lib.d.ts" @@ -114,6 +121,12 @@ File: /a/b/node.d.ts declare module 'fs' {} +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Module 'fs' was resolved as ambient module declared in '/a/b/node.d.ts' since this file was not modified. MissingPaths:: [ @@ -163,6 +176,12 @@ File: /a/b/node.d.ts declare var process: any +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'fs' from '/a/b/app.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/a/b/fs.ts' does not exist. diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js index 514a18f42c628..5f88f3f72fe6a 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js @@ -92,18 +92,32 @@ typerefs2: { ] } +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'typerefs1', containing file 'f1.ts', root directory 'node_modules/@types'. ======== Resolving with primary search path 'node_modules/@types'. -File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/typerefs1/package.json' does not exist according to earlier cached lookups. File 'node_modules/@types/typerefs1/index.d.ts' exists - use it as a name resolution result. ======== Type reference directive 'typerefs1' was successfully resolved to 'node_modules/@types/typerefs1/index.d.ts', primary: true. ======== ======== Resolving module './b1' from 'f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. ======== Module name './b1' was successfully resolved to 'b1.ts'. ======== +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'typerefs2', containing file 'f2.ts', root directory 'node_modules/@types'. ======== Resolving with primary search path 'node_modules/@types'. -File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/typerefs2/package.json' does not exist according to earlier cached lookups. File 'node_modules/@types/typerefs2/index.d.ts' exists - use it as a name resolution result. ======== Type reference directive 'typerefs2' was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts', primary: true. ======== ======== Resolving module './b2' from 'f2.ts'. ======== @@ -217,18 +231,47 @@ typerefs2: { ] } +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'typerefs1', containing file 'f1.ts', root directory 'node_modules/@types'. ======== Resolving with primary search path 'node_modules/@types'. -File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/typerefs1/package.json' does not exist according to earlier cached lookups. File 'node_modules/@types/typerefs1/index.d.ts' exists - use it as a name resolution result. ======== Type reference directive 'typerefs1' was successfully resolved to 'node_modules/@types/typerefs1/index.d.ts', primary: true. ======== ======== Resolving module './b1' from 'f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. ======== Module name './b1' was successfully resolved to 'b1.ts'. ======== +File 'package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File 'package.json' does not exist according to earlier cached lookups. MissingPaths:: [ "lib.d.ts" @@ -322,13 +365,42 @@ typerefs2: { ] } +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving module './b1' from 'f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. ======== Module name './b1' was successfully resolved to 'b1.ts'. ======== +File 'package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File 'package.json' does not exist according to earlier cached lookups. MissingPaths:: [ "lib.d.ts" @@ -422,13 +494,42 @@ typerefs2: { ] } +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving module './b1' from 'f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. ======== Module name './b1' was successfully resolved to 'b1.ts'. ======== +File 'package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File 'package.json' does not exist according to earlier cached lookups. MissingPaths:: [ "lib.d.ts" @@ -521,6 +622,20 @@ typerefs2: { ] } +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving module './b1' from 'f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. @@ -618,13 +733,42 @@ typerefs2: { ] } +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving module './b1' from 'f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. ======== Module name './b1' was successfully resolved to 'b1.ts'. ======== +File 'package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File 'package.json' does not exist according to earlier cached lookups. MissingPaths:: [ "lib.d.ts" @@ -709,9 +853,38 @@ typerefs2: { ] } +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs1/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/typerefs2/package.json' does not exist according to earlier cached lookups. +File 'node_modules/@types/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File 'package.json' does not exist according to earlier cached lookups. MissingPaths:: [ "lib.d.ts" diff --git a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js index a238d15384f72..e0465c1a849d1 100644 --- a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js +++ b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js @@ -29,6 +29,7 @@ File: file2.ts +File 'package.json' does not exist. ======== Resolving module 'a' from 'file1.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -51,6 +52,8 @@ File 'node_modules/a.jsx' does not exist. File 'node_modules/a/index.js' does not exist. File 'node_modules/a/index.jsx' does not exist. ======== Module name 'a' was not resolved. ======== +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. MissingPaths:: [ "lib.d.ts" @@ -93,6 +96,9 @@ File: file2.ts +File 'package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. ======== Resolving module 'a' from 'file1.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -105,6 +111,10 @@ File 'node_modules/a/index.ts' does not exist. File 'node_modules/a/index.tsx' does not exist. File 'node_modules/a/index.d.ts' exists - use it as a name resolution result. ======== Module name 'a' was successfully resolved to 'node_modules/a/index.d.ts'. ======== +File 'node_modules/a/package.json' does not exist according to earlier cached lookups. +File 'node_modules/package.json' does not exist. +File 'package.json' does not exist according to earlier cached lookups. +File 'package.json' does not exist according to earlier cached lookups. MissingPaths:: [] 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 9d4cb1df205f5..1ef75109fd008 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 @@ -241,7 +241,7 @@ sourceFile:file4.ts >>>//# 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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","impliedFormat":1},{"version":"1463681686-const myVar = 30;","impliedFormat":1}],"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] { @@ -253,10 +253,38 @@ sourceFile:file4.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;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../lib/module.d.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "./file3.ts": { + "original": { + "version": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", + "impliedFormat": 1 + }, + "version": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", + "impliedFormat": "commonjs" + }, + "./file4.ts": { + "original": { + "version": "1463681686-const myVar = 30;", + "impliedFormat": 1 + }, + "version": "1463681686-const myVar = 30;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -281,7 +309,7 @@ sourceFile:file4.ts "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 1161 + "size": 1281 } //// [/src/lib/module.d.ts] @@ -552,7 +580,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"3587416848-const myGlob = 20;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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] { @@ -565,11 +593,46 @@ sourceFile:global.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": "3587416848-const myGlob = 20;", - "./file1.ts": "-10726455937-export const x = 10;", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "3587416848-const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "3587416848-const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -598,7 +661,7 @@ sourceFile:global.ts "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 1111 + "size": 1261 } @@ -796,7 +859,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"3587416848-const myGlob = 20;","impliedFormat":1},{"version":"-4405159098-export const x = 10;console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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] { @@ -809,11 +872,46 @@ sourceFile:global.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": "3587416848-const 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;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "3587416848-const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "3587416848-const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": 1 + }, + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -842,6 +940,6 @@ sourceFile:global.ts "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 1125 + "size": 1275 } 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 new file mode 100644 index 0000000000000..d2c8692bbeffe --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,2330 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","impliedFormat":1},{"version":"186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", + "impliedFormat": 1 + }, + "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "impliedFormat": 1 + }, + "version": "186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 5795 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","impliedFormat":1},{"version":"12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", + "impliedFormat": 1 + }, + "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);", + "impliedFormat": 1 + }, + "version": "12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 5882 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","impliedFormat":1},{"version":"-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", + "impliedFormat": 1 + }, + "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);", + "impliedFormat": 1 + }, + "version": "-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 5013 +} + 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 new file mode 100644 index 0000000000000..adaa0d537a2f7 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js @@ -0,0 +1,1762 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"9536729713-\"myPrologue\"\nconst myGlob = 20;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"16047001250-\"myPrologueFile\"\nexport const y = 20;","impliedFormat":1},{"version":"7757520337-\"myPrologue3\"\nconst globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", + "impliedFormat": 1 + }, + "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", + "impliedFormat": 1 + }, + "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", + "impliedFormat": 1 + }, + "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 3573 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"9536729713-\"myPrologue\"\nconst myGlob = 20;","impliedFormat":1},{"version":"-4405159098-export const x = 10;console.log(x);","impliedFormat":1},{"version":"16047001250-\"myPrologueFile\"\nexport const y = 20;","impliedFormat":1},{"version":"7757520337-\"myPrologue3\"\nconst globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", + "impliedFormat": 1 + }, + "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": 1 + }, + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", + "impliedFormat": 1 + }, + "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", + "impliedFormat": 1 + }, + "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 3656 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"9536729713-\"myPrologue\"\nconst myGlob = 20;","impliedFormat":1},{"version":"-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);","impliedFormat":1},{"version":"16047001250-\"myPrologueFile\"\nexport const y = 20;","impliedFormat":1},{"version":"7757520337-\"myPrologue3\"\nconst globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", + "impliedFormat": 1 + }, + "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);", + "impliedFormat": 1 + }, + "version": "-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", + "impliedFormat": 1 + }, + "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", + "impliedFormat": 1 + }, + "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 3713 +} + 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 e2370d49b9551..94de7260e19fd 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js @@ -374,7 +374,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"3587416848-const myGlob = 20;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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] { @@ -387,11 +387,46 @@ sourceFile:global.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": "3587416848-const myGlob = 20;", - "./file1.ts": "-10726455937-export const x = 10;", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "3587416848-const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "3587416848-const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -420,7 +455,7 @@ sourceFile:global.ts "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 1111 + "size": 1261 } @@ -631,7 +666,7 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"3587416848-const myGlob = 20;","impliedFormat":1},{"version":"-4405159098-export const x = 10;console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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] { @@ -644,11 +679,46 @@ sourceFile:global.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": "3587416848-const 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;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "3587416848-const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "3587416848-const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": 1 + }, + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -677,6 +747,6 @@ sourceFile:global.ts "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 1125 + "size": 1275 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js new file mode 100644 index 0000000000000..ed40709db23b4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js @@ -0,0 +1,904 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"7942086417-#!someshebang lib file0\nconst myGlob = 20;","impliedFormat":1},{"version":"378638433-#!someshebang lib file1\nexport const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", + "impliedFormat": 1 + }, + "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "378638433-#!someshebang lib file1\nexport const x = 10;", + "impliedFormat": 1 + }, + "version": "378638433-#!someshebang lib file1\nexport const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 3001 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"7942086417-#!someshebang lib file0\nconst myGlob = 20;","impliedFormat":1},{"version":"7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", + "impliedFormat": 1 + }, + "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);", + "impliedFormat": 1 + }, + "version": "7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 3089 +} + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js new file mode 100644 index 0000000000000..fdd1a131ed99b --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js @@ -0,0 +1,7559 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4331635807-/*@internal*/ const myGlob = 20;","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "4331635807-/*@internal*/ const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "4331635807-/*@internal*/ const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "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 }", + "impliedFormat": 1 + }, + "version": "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 }", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 13316 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4331635807-/*@internal*/ const myGlob = 20;","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "4331635807-/*@internal*/ const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "4331635807-/*@internal*/ const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 13400 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4331635807-/*@internal*/ const myGlob = 20;","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "4331635807-/*@internal*/ const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "4331635807-/*@internal*/ const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 13511 +} + 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 new file mode 100644 index 0000000000000..6d7dba16716b5 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js @@ -0,0 +1,1043 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-2339691926-declare class libfile0 { }","impliedFormat":1},{"version":"11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./tripleref.d.ts": { + "original": { + "version": "-2339691926-declare class libfile0 { }", + "impliedFormat": 1 + }, + "version": "-2339691926-declare class libfile0 { }", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", + "impliedFormat": 1 + }, + "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 3436 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-2339691926-declare class libfile0 { }","impliedFormat":1},{"version":"11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","impliedFormat":1},{"version":"-4405159098-export const x = 10;console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./tripleref.d.ts": { + "original": { + "version": "-2339691926-declare class libfile0 { }", + "impliedFormat": 1 + }, + "version": "-2339691926-declare class libfile0 { }", + "impliedFormat": "commonjs" + }, + "./file0.ts": { + "original": { + "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", + "impliedFormat": 1 + }, + "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": 1 + }, + "version": "-4405159098-export const x = 10;console.log(x);", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } + }, + "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": 3520 +} + 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 a8659bff008d1..f122e59a4fedb 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 @@ -241,7 +241,7 @@ sourceFile:file4.ts >>>//# 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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../module.d.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n","impliedFormat":1},{"version":"1463681686-const myVar = 30;","impliedFormat":1}],"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] { @@ -253,10 +253,38 @@ sourceFile:file4.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;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../module.d.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "./file3.ts": { + "original": { + "version": "-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n", + "impliedFormat": 1 + }, + "version": "-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n", + "impliedFormat": "commonjs" + }, + "./file4.ts": { + "original": { + "version": "1463681686-const myVar = 30;", + "impliedFormat": 1 + }, + "version": "1463681686-const myVar = 30;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -281,7 +309,7 @@ sourceFile:file4.ts "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 1170 + "size": 1290 } //// [/src/module.d.ts] @@ -553,7 +581,7 @@ sourceFile:lib/global.ts >>>//# sourceMappingURL=module.js.map //// [/src/module.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"3587416848-const myGlob = 20;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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] { @@ -566,11 +594,46 @@ sourceFile:lib/global.ts "./lib/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; };", - "./lib/file0.ts": "3587416848-const myGlob = 20;", - "./lib/file1.ts": "-10726455937-export const x = 10;", - "./lib/file2.ts": "-13729954175-export const y = 20;", - "./lib/global.ts": "1028229885-const globalConst = 10;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./lib/file0.ts": { + "original": { + "version": "3587416848-const myGlob = 20;", + "impliedFormat": 1 + }, + "version": "3587416848-const myGlob = 20;", + "impliedFormat": "commonjs" + }, + "./lib/file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./lib/file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + }, + "./lib/global.ts": { + "original": { + "version": "1028229885-const globalConst = 10;", + "impliedFormat": 1 + }, + "version": "1028229885-const globalConst = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -600,6 +663,6 @@ sourceFile:lib/global.ts "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 1148 + "size": 1298 } diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/different-options-discrepancies.js index e8fd5fc136a36..0694699c274a3 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -66,19 +71,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,19 +137,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -185,19 +200,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -246,19 +266,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -304,19 +329,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-discrepancies.js index 706bd7b64b101..89fbd35d784e2 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -62,19 +67,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -123,19 +133,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -177,19 +192,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ 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 e39854108f896..e84c1aa9a3254 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 @@ -8,11 +8,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -39,11 +54,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -78,11 +108,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -109,11 +154,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 5f0b2e03fe3cd..21bbf055dbbc4 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,7 +103,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -116,11 +116,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -142,7 +177,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 884 + "size": 1034 } @@ -220,7 +255,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -233,11 +268,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -260,7 +330,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 901 + "size": 1051 } @@ -334,7 +404,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -347,11 +417,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -373,7 +478,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 884 + "size": 1034 } @@ -434,7 +539,7 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -447,11 +552,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -474,7 +614,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 903 + "size": 1053 } @@ -539,7 +679,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -552,11 +692,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -580,7 +755,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 925 + "size": 1075 } @@ -673,7 +848,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -686,11 +861,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -712,7 +922,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 885 + "size": 1035 } @@ -761,7 +971,7 @@ 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] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -774,11 +984,46 @@ No shapes updated in the builder:: "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -802,7 +1047,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 926 + "size": 1076 } @@ -893,7 +1138,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -906,11 +1151,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -933,7 +1213,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 908 + "size": 1058 } @@ -1011,7 +1291,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1024,11 +1304,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1051,7 +1366,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 902 + "size": 1052 } @@ -1125,7 +1440,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1138,11 +1453,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1164,7 +1514,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 885 + "size": 1035 } @@ -1213,7 +1563,7 @@ 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] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1226,11 +1576,46 @@ No shapes updated in the builder:: "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1254,7 +1639,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 926 + "size": 1076 } diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js index d063c8ff0c3bd..4781287865bef 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js @@ -112,7 +112,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -136,27 +136,49 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-18487752940-export const a = 10;const aLocal = 10;" + "signature": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-6189287562-export const b = 10;const bLocal = 10;" + "signature": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "3248317647-import { a } from \"./a\";export const c = a;" + "signature": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-19615769517-import { b } from \"./b\";export const d = b;" + "signature": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -190,7 +212,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1078 } @@ -278,7 +300,7 @@ exports.d = b_1.b; {"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,27 +324,49 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-18487752940-export const a = 10;const aLocal = 10;" + "signature": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-6189287562-export const b = 10;const bLocal = 10;" + "signature": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "3248317647-import { a } from \"./a\";export const c = a;" + "signature": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-19615769517-import { b } from \"./b\";export const d = b;" + "signature": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -359,7 +403,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 969 + "size": 1107 } @@ -434,7 +478,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -458,27 +502,49 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-18487752940-export const a = 10;const aLocal = 10;" + "signature": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-6189287562-export const b = 10;const bLocal = 10;" + "signature": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "3248317647-import { a } from \"./a\";export const c = a;" + "signature": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-19615769517-import { b } from \"./b\";export const d = b;" + "signature": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -512,7 +578,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1078 } @@ -572,7 +638,7 @@ export declare const d = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -596,43 +662,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -669,7 +745,7 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1247 + "size": 1337 } @@ -742,7 +818,7 @@ export declare const d = 10; {"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -766,43 +842,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -840,7 +926,7 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1269 + "size": 1359 } @@ -912,7 +998,7 @@ var aLocal = 100; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -936,43 +1022,53 @@ var aLocal = 100; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1006,7 +1102,7 @@ var aLocal = 100; ] }, "version": "FakeTSVersion", - "size": 1217 + "size": 1307 } @@ -1059,7 +1155,7 @@ No shapes updated in the builder:: //// [/src/project/d.d.ts] file written with same contents //// [/src/project/d.d.ts.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1083,43 +1179,53 @@ No shapes updated in the builder:: "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1157,7 +1263,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1270 + "size": 1360 } @@ -1249,7 +1355,7 @@ exports.d = b_1.b; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1273,43 +1379,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1346,7 +1462,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1252 + "size": 1342 } @@ -1428,7 +1544,7 @@ exports.d = b_1.b; //// [/src/project/d.js.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1452,43 +1568,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1525,7 +1651,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1246 + "size": 1336 } @@ -1600,7 +1726,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1624,43 +1750,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1694,7 +1830,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1217 + "size": 1307 } @@ -1747,7 +1883,7 @@ No shapes updated in the builder:: //// [/src/project/d.d.ts] file written with same contents //// [/src/project/d.d.ts.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1771,43 +1907,53 @@ No shapes updated in the builder:: "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1845,7 +1991,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1270 + "size": 1360 } 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 c6e40e5d0a283..4467e4ae0572e 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 @@ -6,11 +6,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -41,11 +56,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -81,11 +111,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -116,11 +161,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -154,11 +214,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -189,11 +264,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 70e1163cc7a51..09be888288310 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js @@ -118,7 +118,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -131,11 +131,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -160,7 +195,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1184 + "size": 1334 } @@ -238,7 +273,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -251,11 +286,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -281,7 +351,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1201 + "size": 1351 } @@ -355,7 +425,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -368,11 +438,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -397,7 +502,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1184 + "size": 1334 } @@ -494,7 +599,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -507,11 +612,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -538,7 +678,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1225 + "size": 1375 } @@ -598,7 +738,7 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -611,11 +751,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -640,7 +815,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1184 + "size": 1334 } @@ -749,7 +924,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -762,11 +937,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -791,7 +1001,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1185 + "size": 1335 } @@ -882,7 +1092,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -895,11 +1105,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -925,7 +1170,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1208 + "size": 1358 } @@ -1003,7 +1248,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -1016,11 +1261,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1046,6 +1326,6 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1202 + "size": 1352 } diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options.js b/tests/baselines/reference/tsbuild/commandLine/different-options.js index c8f5eb4fa21e3..bba7809b66b9f 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options.js @@ -128,7 +128,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,43 +152,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -226,7 +236,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1279 + "size": 1369 } @@ -314,7 +324,7 @@ exports.d = b_1.b; {"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -338,43 +348,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -413,7 +433,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1296 + "size": 1386 } @@ -488,7 +508,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -512,43 +532,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -586,7 +616,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1279 + "size": 1369 } @@ -691,7 +721,7 @@ export declare const d = 10; {"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -715,43 +745,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -791,7 +831,7 @@ export declare const d = 10; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1320 + "size": 1410 } @@ -850,7 +890,7 @@ export declare const d = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -874,43 +914,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -948,7 +998,7 @@ export declare const d = 10; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1279 + "size": 1369 } @@ -1036,7 +1086,7 @@ var aLocal = 100; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1060,43 +1110,53 @@ var aLocal = 100; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1134,7 +1194,7 @@ var aLocal = 100; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1280 + "size": 1370 } @@ -1226,7 +1286,7 @@ exports.d = b_1.b; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1250,43 +1310,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1325,7 +1395,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1303 + "size": 1393 } @@ -1407,7 +1477,7 @@ exports.d = b_1.b; //// [/src/project/d.js.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1431,43 +1501,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1506,6 +1586,6 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1297 + "size": 1387 } diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-discrepancies.js index 9017a491304fc..5d6d04b8f860e 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;" + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -66,19 +71,24 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;" + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -125,22 +135,28 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-3497920574-export declare const a = 10;\n" + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -187,22 +203,28 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-3497920574-export declare const a = 10;\n" + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-discrepancies.js index c69a05e8b1ed4..080f3aab5f11a 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;" + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -65,19 +70,24 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;" + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -123,22 +133,28 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-3497920574-export declare const a = 10;\n" + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -184,22 +200,28 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-3497920574-export declare const a = 10;\n" + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ 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 42050daabce36..09e16ac254310 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 @@ -6,11 +6,26 @@ CleanBuild: { "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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -39,11 +54,26 @@ IncrementalBuild: { "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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 f653d343e21c7..957c372f74ff9 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 @@ -160,7 +160,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -173,11 +173,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -201,7 +236,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 917 + "size": 1067 } @@ -351,7 +386,7 @@ No shapes updated in the builder:: //// [/src/project1/outFile.d.ts] file written with same contents //// [/src/project1/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -364,11 +399,46 @@ No shapes updated in the builder:: "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -392,7 +462,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 931 + "size": 1081 } @@ -511,7 +581,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -524,11 +594,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -552,7 +657,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 932 + "size": 1082 } @@ -790,7 +895,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -803,11 +908,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", + "impliedFormat": 1 + }, + "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -831,6 +971,6 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 949 + "size": 1099 } diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js index c4de7d9de9d1a..0cfdd001384d3 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js @@ -164,7 +164,7 @@ export declare const d = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -188,43 +188,53 @@ export declare const d = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -262,11 +272,11 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1277 + "size": 1367 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":false},{"version":"-3497920574-export declare const a = 10;\n","signature":false},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false},{"version":"-3829150557-export declare const b = 10;\n","signature":false},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-13789510868-export const e = 10;","signature":false,"impliedFormat":1},{"version":"-3497920574-export declare const a = 10;\n","signature":false,"impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false,"impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","signature":false,"impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false,"impliedFormat":1}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -292,45 +302,57 @@ export declare const d = 10; "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { "original": { "version": "-3497920574-export declare const a = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3497920574-export declare const a = 10;\n" + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { "original": { "version": "-3829150557-export declare const b = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -369,7 +391,7 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1260 + "size": 1368 } @@ -517,7 +539,7 @@ No shapes updated in the builder:: //// [/src/project1/src/a.d.ts] file written with same contents //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -541,43 +563,53 @@ No shapes updated in the builder:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -615,7 +647,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1291 + "size": 1381 } @@ -734,7 +766,7 @@ exports.d = b_1.b; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -758,43 +790,53 @@ exports.d = b_1.b; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -832,11 +874,11 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1292 + "size": 1382 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":false},{"version":"-3497920574-export declare const a = 10;\n","signature":false},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false},{"version":"-3829150557-export declare const b = 10;\n","signature":false},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":false},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-13789510868-export const e = 10;","signature":false,"impliedFormat":1},{"version":"-3497920574-export declare const a = 10;\n","signature":false,"impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false,"impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","signature":false,"impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false,"impliedFormat":1}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":false},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -862,45 +904,57 @@ exports.d = b_1.b; "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { "original": { "version": "-3497920574-export declare const a = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3497920574-export declare const a = 10;\n" + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { "original": { "version": "-3829150557-export declare const b = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -939,7 +993,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1261 + "size": 1369 } @@ -1152,7 +1206,7 @@ var blocal = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1176,43 +1230,53 @@ var blocal = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1250,6 +1314,6 @@ var blocal = 10; ] }, "version": "FakeTSVersion", - "size": 1309 + "size": 1399 } 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 b70cecc60e1c4..361b265b8fa8d 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 @@ -6,11 +6,26 @@ CleanBuild: { "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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -41,11 +56,26 @@ IncrementalBuild: { "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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -77,11 +107,26 @@ CleanBuild: { "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; };", - "../project1/outfile.d.ts": "-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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "version": "-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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -111,11 +156,26 @@ IncrementalBuild: { "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; };", - "../project1/outfile.d.ts": "-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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "version": "-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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 e803a0fc3e06f..71660c5b19958 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 @@ -144,7 +144,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -157,11 +157,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -187,7 +222,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1198 + "size": 1348 } //// [/src/project2/outFile.d.ts] @@ -203,7 +238,7 @@ declare module "g" { //// [/src/project2/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"-13789510868-export const e = 10;","impliedFormat":1},{"version":"-4849089835-import { a } from \"a\"; export const f = a;","impliedFormat":1},{"version":"-18341999015-import { b } from \"b\"; export const g = b;","impliedFormat":1}],"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] { @@ -216,11 +251,46 @@ declare module "g" { "./src/g.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; };", - "../project1/outfile.d.ts": "-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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "original": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": 1 + }, + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "original": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": 1 + }, + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "original": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": 1 + }, + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -245,7 +315,7 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1315 + "size": 1465 } @@ -318,7 +388,7 @@ No shapes updated in the builder:: //// [/src/project1/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -331,11 +401,46 @@ No shapes updated in the builder:: "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -361,7 +466,7 @@ No shapes updated in the builder:: "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1212 + "size": 1362 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -467,7 +572,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -480,11 +585,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -510,7 +650,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1213 + "size": 1363 } //// [/src/project2/outFile.js] @@ -535,7 +675,7 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project2/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"-13789510868-export const e = 10;","impliedFormat":1},{"version":"-4849089835-import { a } from \"a\"; export const f = a;","impliedFormat":1},{"version":"-18341999015-import { b } from \"b\"; export const g = b;","impliedFormat":1}],"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] { @@ -548,11 +688,46 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { "./src/g.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; };", - "../project1/outfile.d.ts": "-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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "original": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": 1 + }, + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "original": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": 1 + }, + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "original": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": 1 + }, + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -577,7 +752,7 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1316 + "size": 1466 } @@ -700,7 +875,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -713,11 +888,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", + "impliedFormat": 1 + }, + "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -743,7 +953,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1230 + "size": 1380 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js index c2470a62d5c51..53b1249b5c53d 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js @@ -160,7 +160,7 @@ export declare const d = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -184,43 +184,53 @@ export declare const d = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -259,7 +269,7 @@ export declare const d = 10; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1309 + "size": 1399 } //// [/src/project2/src/e.d.ts] @@ -275,7 +285,7 @@ export declare const g = 10; //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n"},"-3497920574-export declare const a = 10;\n",{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n"},"-3829150557-export declare const b = 10;\n",{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n"}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n","impliedFormat":1},{"version":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n","impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n","impliedFormat":1}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -300,43 +310,61 @@ export declare const g = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": 1 }, "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { + "original": { + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 + }, "version": "-3497920574-export declare const a = 10;\n", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": 1 }, "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { + "original": { + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 + }, "version": "-3829150557-export declare const b = 10;\n", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": 1 }, "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -376,7 +404,7 @@ export declare const g = 10; "latestChangedDtsFile": "./g.d.ts" }, "version": "FakeTSVersion", - "size": 1344 + "size": 1476 } @@ -449,7 +477,7 @@ Shape signatures in builder refreshed for:: //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -473,43 +501,53 @@ Shape signatures in builder refreshed for:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -548,7 +586,7 @@ Shape signatures in builder refreshed for:: "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1323 + "size": 1413 } //// [/src/project2/src/tsconfig.tsbuildinfo] file changed its modified time @@ -654,7 +692,7 @@ exports.d = b_1.b; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -678,43 +716,53 @@ exports.d = b_1.b; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -753,7 +801,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1324 + "size": 1414 } //// [/src/project2/src/e.js] @@ -780,7 +828,7 @@ exports.g = b_1.b; //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n"},"-3497920574-export declare const a = 10;\n",{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n"},"-3829150557-export declare const b = 10;\n",{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n"}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":false},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n","impliedFormat":1},{"version":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n","impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n","impliedFormat":1}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":false},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -805,43 +853,61 @@ exports.g = b_1.b; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": 1 }, "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { + "original": { + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 + }, "version": "-3497920574-export declare const a = 10;\n", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": 1 }, "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { + "original": { + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 + }, "version": "-3829150557-export declare const b = 10;\n", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": 1 }, "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -881,7 +947,7 @@ exports.g = b_1.b; "latestChangedDtsFile": "./g.d.ts" }, "version": "FakeTSVersion", - "size": 1345 + "size": 1477 } @@ -982,7 +1048,7 @@ var blocal = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1006,43 +1072,53 @@ var blocal = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "2355059555-export const b = 10;const bLocal = 10;const blocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1081,7 +1157,7 @@ var blocal = 10; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1341 + "size": 1431 } //// [/src/project2/src/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-discrepancies.js index 2db23759dbebb..32b06b98df959 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;" + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -66,19 +71,24 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;" + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -124,22 +134,28 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -186,22 +202,28 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -251,22 +273,28 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -313,22 +341,28 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-discrepancies.js index 30b1333bed8d7..84a50b0823c06 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;" + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -65,19 +70,24 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;" + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -122,22 +132,28 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -183,22 +199,28 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -247,22 +269,28 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -308,22 +336,28 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ 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 dd6ccad41597c..e1c4f162e626e 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 @@ -6,11 +6,26 @@ CleanBuild: { "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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -39,11 +54,26 @@ IncrementalBuild: { "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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 0e004c1873b11..0eeaa0f454b3b 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 @@ -158,7 +158,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -171,11 +171,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -199,7 +234,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 917 + "size": 1067 } @@ -349,7 +384,7 @@ No shapes updated in the builder:: //// [/src/project1/outFile.d.ts] file written with same contents //// [/src/project1/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -362,11 +397,46 @@ No shapes updated in the builder:: "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -390,7 +460,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 931 + "size": 1081 } @@ -498,7 +568,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -511,11 +581,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -539,7 +644,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 952 + "size": 1102 } @@ -657,7 +762,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -670,11 +775,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -697,7 +837,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 925 + "size": 1075 } @@ -877,7 +1017,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -890,11 +1030,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", + "impliedFormat": 1 + }, + "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -917,7 +1092,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 943 + "size": 1093 } @@ -1010,7 +1185,7 @@ No shapes updated in the builder:: //// [/src/project1/outFile.d.ts] file written with same contents //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1023,11 +1198,46 @@ No shapes updated in the builder:: "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "impliedFormat": 1 + }, + "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1051,7 +1261,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 986 + "size": 1136 } @@ -1160,7 +1370,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1173,11 +1383,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "impliedFormat": 1 + }, + "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1201,7 +1446,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 1010 + "size": 1160 } @@ -1344,7 +1589,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1357,11 +1602,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "impliedFormat": 1 + }, + "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1384,6 +1664,6 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 1005 + "size": 1155 } diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js index f940f4cfd561d..826fcd17624d3 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js @@ -162,7 +162,7 @@ export declare const d = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -186,43 +186,53 @@ export declare const d = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -260,11 +270,11 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1277 + "size": 1367 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":false},{"version":"-3497920574-export declare const a = 10;\n","signature":false},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false},{"version":"-3829150557-export declare const b = 10;\n","signature":false},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-13789510868-export const e = 10;","signature":false,"impliedFormat":1},{"version":"-3497920574-export declare const a = 10;\n","signature":false,"impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false,"impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","signature":false,"impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false,"impliedFormat":1}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -290,45 +300,57 @@ export declare const d = 10; "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { "original": { "version": "-3497920574-export declare const a = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3497920574-export declare const a = 10;\n" + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { "original": { "version": "-3829150557-export declare const b = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -367,7 +389,7 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1260 + "size": 1368 } @@ -515,7 +537,7 @@ No shapes updated in the builder:: //// [/src/project1/src/a.d.ts] file written with same contents //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -539,43 +561,53 @@ No shapes updated in the builder:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -613,7 +645,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1291 + "size": 1381 } @@ -712,7 +744,7 @@ export declare const aaa = 10; //// [/src/project1/src/c.d.ts] file written with same contents //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -736,43 +768,53 @@ export declare const aaa = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -810,11 +852,11 @@ export declare const aaa = 10; ] }, "version": "FakeTSVersion", - "size": 1344 + "size": 1434 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":false},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false},{"version":"-3829150557-export declare const b = 10;\n","signature":false},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-13789510868-export const e = 10;","signature":false,"impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false,"impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false,"impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","signature":false,"impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false,"impliedFormat":1}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -840,45 +882,57 @@ export declare const aaa = 10; "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { "original": { "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { "original": { "version": "-3829150557-export declare const b = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -917,7 +971,7 @@ export declare const aaa = 10; ] }, "version": "FakeTSVersion", - "size": 1292 + "size": 1400 } @@ -1035,7 +1089,7 @@ exports.d = b_1.b; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1059,43 +1113,53 @@ exports.d = b_1.b; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1132,11 +1196,11 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1317 + "size": 1407 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":false},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false},{"version":"-3829150557-export declare const b = 10;\n","signature":false},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false}],"root":[2,4,6],"options":{"declaration":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-13789510868-export const e = 10;","signature":false,"impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false,"impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false,"impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","signature":false,"impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false,"impliedFormat":1}],"root":[2,4,6],"options":{"declaration":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1162,45 +1226,57 @@ exports.d = b_1.b; "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { "original": { "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { "original": { "version": "-3829150557-export declare const b = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3829150557-export declare const b = 10;\n" + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -1238,7 +1314,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1265 + "size": 1373 } @@ -1393,7 +1469,7 @@ var alocal = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1417,43 +1493,53 @@ var alocal = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1490,7 +1576,7 @@ var alocal = 10; ] }, "version": "FakeTSVersion", - "size": 1335 + "size": 1425 } @@ -1582,7 +1668,7 @@ No shapes updated in the builder:: //// [/src/project1/src/b.d.ts] file written with same contents //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1606,43 +1692,53 @@ No shapes updated in the builder:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1680,7 +1776,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1378 + "size": 1468 } @@ -1779,7 +1875,7 @@ export declare const aaaaa = 10; //// [/src/project1/src/d.d.ts] file written with same contents //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1803,43 +1899,53 @@ export declare const aaaaa = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n" + "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedFormat": 1 }, "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n" + "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1877,11 +1983,11 @@ export declare const aaaaa = 10; ] }, "version": "FakeTSVersion", - "size": 1435 + "size": 1525 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":false},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false},{"version":"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n","signature":false},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-13789510868-export const e = 10;","signature":false,"impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false,"impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false,"impliedFormat":1},{"version":"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n","signature":false,"impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false,"impliedFormat":1}],"root":[2,4,6],"options":{"declaration":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1907,45 +2013,57 @@ export declare const aaaaa = 10; "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { "original": { "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { "original": { "version": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n" + "version": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -1984,7 +2102,7 @@ export declare const aaaaa = 10; ] }, "version": "FakeTSVersion", - "size": 1325 + "size": 1433 } @@ -2097,7 +2215,7 @@ exports.a2 = 10; //// [/src/project1/src/d.d.ts] file written with same contents //// [/src/project1/src/d.js] file written with same contents //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2121,43 +2239,53 @@ exports.a2 = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n" + "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedFormat": 1 }, "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n" + "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -2194,11 +2322,11 @@ exports.a2 = 10; ] }, "version": "FakeTSVersion", - "size": 1462 + "size": 1552 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":false},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false},{"version":"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","signature":false},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false}],"root":[2,4,6],"options":{"declaration":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-13789510868-export const e = 10;","signature":false,"impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","signature":false,"impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":false,"impliedFormat":1},{"version":"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","signature":false,"impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":false,"impliedFormat":1}],"root":[2,4,6],"options":{"declaration":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"changeFileSet":[1,3,5,2,4,6]},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2224,45 +2352,57 @@ exports.a2 = 10; "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-13789510868-export const e = 10;" + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { "original": { "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;" + "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { "original": { "version": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n" + "version": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;" + "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -2300,6 +2440,6 @@ exports.a2 = 10; ] }, "version": "FakeTSVersion", - "size": 1330 + "size": 1438 } 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 98ac704ddf1db..73615d3ab3057 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 @@ -6,11 +6,26 @@ CleanBuild: { "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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -41,11 +56,26 @@ IncrementalBuild: { "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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -76,11 +106,26 @@ CleanBuild: { "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; };", - "../project1/outfile.d.ts": "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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "version": "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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -110,11 +155,26 @@ IncrementalBuild: { "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; };", - "../project1/outfile.d.ts": "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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "version": "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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -147,11 +207,26 @@ CleanBuild: { "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; };", - "../project1/outfile.d.ts": "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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "version": "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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -181,11 +256,26 @@ IncrementalBuild: { "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; };", - "../project1/outfile.d.ts": "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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "version": "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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 92d792bb8137a..dccca36821785 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 @@ -142,7 +142,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -155,11 +155,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -185,7 +220,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1198 + "size": 1348 } //// [/src/project2/outFile.d.ts] @@ -201,7 +236,7 @@ declare module "g" { //// [/src/project2/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"-13789510868-export const e = 10;","impliedFormat":1},{"version":"-4849089835-import { a } from \"a\"; export const f = a;","impliedFormat":1},{"version":"-18341999015-import { b } from \"b\"; export const g = b;","impliedFormat":1}],"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] { @@ -214,11 +249,46 @@ declare module "g" { "./src/g.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; };", - "../project1/outfile.d.ts": "-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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "original": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": 1 + }, + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "original": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": 1 + }, + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "original": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": 1 + }, + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -243,7 +313,7 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1315 + "size": 1465 } @@ -316,7 +386,7 @@ No shapes updated in the builder:: //// [/src/project1/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -329,11 +399,46 @@ No shapes updated in the builder:: "./src/d.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; };", - "./src/a.ts": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": 1 + }, + "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -359,7 +464,7 @@ No shapes updated in the builder:: "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1212 + "size": 1362 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -454,7 +559,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -467,11 +572,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -497,11 +637,11 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1258 + "size": 1408 } //// [/src/project2/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-13789510868-export const e = 10;","impliedFormat":1},{"version":"-4849089835-import { a } from \"a\"; export const f = a;","impliedFormat":1},{"version":"-18341999015-import { b } from \"b\"; export const g = b;","impliedFormat":1}],"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] { @@ -514,11 +654,46 @@ declare module "d" { "./src/g.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; };", - "../project1/outfile.d.ts": "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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "original": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": 1 + }, + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "original": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": 1 + }, + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "original": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": 1 + }, + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -543,7 +718,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1340 + "size": 1490 } @@ -647,7 +822,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -660,11 +835,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -689,7 +899,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1231 + "size": 1381 } //// [/src/project2/outFile.js] @@ -714,7 +924,7 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project2/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-13789510868-export const e = 10;","impliedFormat":1},{"version":"-4849089835-import { a } from \"a\"; export const f = a;","impliedFormat":1},{"version":"-18341999015-import { b } from \"b\"; export const g = b;","impliedFormat":1}],"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] { @@ -727,11 +937,46 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { "./src/g.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; };", - "../project1/outfile.d.ts": "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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "original": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": 1 + }, + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "original": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": 1 + }, + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "original": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": 1 + }, + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -755,7 +1000,7 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1313 + "size": 1463 } @@ -859,7 +1104,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -872,11 +1117,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", + "impliedFormat": 1 + }, + "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -901,7 +1181,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1249 + "size": 1399 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -956,7 +1236,7 @@ No shapes updated in the builder:: //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -969,11 +1249,46 @@ No shapes updated in the builder:: "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "impliedFormat": 1 + }, + "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -999,7 +1314,7 @@ No shapes updated in the builder:: "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1292 + "size": 1442 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -1095,7 +1410,7 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -1108,11 +1423,46 @@ declare module "d" { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "impliedFormat": 1 + }, + "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1138,11 +1488,11 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1348 + "size": 1498 } //// [/src/project2/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"-13789510868-export const e = 10;","impliedFormat":1},{"version":"-4849089835-import { a } from \"a\"; export const f = a;","impliedFormat":1},{"version":"-18341999015-import { b } from \"b\"; export const g = b;","impliedFormat":1}],"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] { @@ -1155,11 +1505,46 @@ declare module "d" { "./src/g.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; };", - "../project1/outfile.d.ts": "-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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "original": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": 1 + }, + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "original": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": 1 + }, + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "original": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": 1 + }, + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1184,7 +1569,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1372 + "size": 1522 } @@ -1313,7 +1698,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","impliedFormat":1},{"version":"-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -1326,11 +1711,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/d.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; };", - "./src/a.ts": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "./src/b.ts": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "./src/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./src/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./src/a.ts": { + "original": { + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": 1 + }, + "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", + "impliedFormat": "commonjs" + }, + "./src/b.ts": { + "original": { + "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "impliedFormat": 1 + }, + "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", + "impliedFormat": "commonjs" + }, + "./src/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./src/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1355,12 +1775,12 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1369 + "size": 1519 } //// [/src/project2/outFile.js] file written with same contents //// [/src/project2/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-13789510868-export const e = 10;","impliedFormat":1},{"version":"-4849089835-import { a } from \"a\"; export const f = a;","impliedFormat":1},{"version":"-18341999015-import { b } from \"b\"; export const g = b;","impliedFormat":1}],"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] { @@ -1373,11 +1793,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./src/g.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; };", - "../project1/outfile.d.ts": "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", - "./src/e.ts": "-13789510868-export const e = 10;", - "./src/f.ts": "-4849089835-import { a } from \"a\"; export const f = a;", - "./src/g.ts": "-18341999015-import { b } from \"b\"; export const g = b;" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../project1/outfile.d.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "./src/e.ts": { + "original": { + "version": "-13789510868-export const e = 10;", + "impliedFormat": 1 + }, + "version": "-13789510868-export const e = 10;", + "impliedFormat": "commonjs" + }, + "./src/f.ts": { + "original": { + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": 1 + }, + "version": "-4849089835-import { a } from \"a\"; export const f = a;", + "impliedFormat": "commonjs" + }, + "./src/g.ts": { + "original": { + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": 1 + }, + "version": "-18341999015-import { b } from \"b\"; export const g = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1401,6 +1856,6 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1371 + "size": 1521 } diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js index 75371da8cc561..5951d004bd386 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js @@ -158,7 +158,7 @@ export declare const d = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,43 +182,53 @@ export declare const d = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -257,7 +267,7 @@ export declare const d = 10; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1309 + "size": 1399 } //// [/src/project2/src/e.d.ts] @@ -273,7 +283,7 @@ export declare const g = 10; //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n"},"-3497920574-export declare const a = 10;\n",{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n"},"-3829150557-export declare const b = 10;\n",{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n"}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n","impliedFormat":1},{"version":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n","impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n","impliedFormat":1}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -298,43 +308,61 @@ export declare const g = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": 1 }, "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { + "original": { + "version": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 + }, "version": "-3497920574-export declare const a = 10;\n", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": 1 }, "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { + "original": { + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 + }, "version": "-3829150557-export declare const b = 10;\n", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": 1 }, "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -374,7 +402,7 @@ export declare const g = 10; "latestChangedDtsFile": "./g.d.ts" }, "version": "FakeTSVersion", - "size": 1344 + "size": 1476 } @@ -447,7 +475,7 @@ Shape signatures in builder refreshed for:: //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -471,43 +499,53 @@ Shape signatures in builder refreshed for:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-16597586570-export const a = 10;const aLocal = 10;const aa = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -546,7 +584,7 @@ Shape signatures in builder refreshed for:: "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1323 + "size": 1413 } //// [/src/project2/src/tsconfig.tsbuildinfo] file changed its modified time @@ -635,7 +673,7 @@ export declare const aaa = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -659,43 +697,53 @@ export declare const aaa = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -734,11 +782,11 @@ export declare const aaa = 10; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1376 + "size": 1466 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n"},"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n"},"-3829150557-export declare const b = 10;\n",{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n"}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n","impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n","impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n","impliedFormat":1}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -763,43 +811,61 @@ export declare const aaa = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": 1 }, "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { + "original": { + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 + }, "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": 1 }, "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { + "original": { + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 + }, "version": "-3829150557-export declare const b = 10;\n", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": 1 }, "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -839,7 +905,7 @@ export declare const aaa = 10; "latestChangedDtsFile": "./g.d.ts" }, "version": "FakeTSVersion", - "size": 1376 + "size": 1508 } @@ -943,7 +1009,7 @@ exports.d = b_1.b; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -967,43 +1033,53 @@ exports.d = b_1.b; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1041,7 +1117,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1349 + "size": 1439 } //// [/src/project2/src/e.js] @@ -1068,7 +1144,7 @@ exports.g = b_1.b; //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n"},"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n"},"-3829150557-export declare const b = 10;\n",{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n"}],"root":[2,4,6],"options":{"composite":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n","impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n","impliedFormat":1},{"version":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n","impliedFormat":1}],"root":[2,4,6],"options":{"composite":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1093,43 +1169,61 @@ exports.g = b_1.b; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": 1 }, "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { + "original": { + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 + }, "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": 1 }, "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { + "original": { + "version": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 + }, "version": "-3829150557-export declare const b = 10;\n", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": 1 }, "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1168,7 +1262,7 @@ exports.g = b_1.b; "latestChangedDtsFile": "./g.d.ts" }, "version": "FakeTSVersion", - "size": 1349 + "size": 1481 } @@ -1249,7 +1343,7 @@ var alocal = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1273,43 +1367,53 @@ var alocal = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1347,7 +1451,7 @@ var alocal = 10; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1367 + "size": 1457 } //// [/src/project2/src/tsconfig.tsbuildinfo] file changed its modified time @@ -1402,7 +1506,7 @@ Shape signatures in builder refreshed for:: //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1426,43 +1530,53 @@ Shape signatures in builder refreshed for:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1501,7 +1615,7 @@ Shape signatures in builder refreshed for:: "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1410 + "size": 1500 } //// [/src/project2/src/tsconfig.tsbuildinfo] file changed its modified time @@ -1590,7 +1704,7 @@ export declare const aaaaa = 10; //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","signature":"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1614,43 +1728,53 @@ export declare const aaaaa = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n" + "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedFormat": 1 }, "version": "-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;", - "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n" + "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1689,11 +1813,11 @@ export declare const aaaaa = 10; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1467 + "size": 1557 } //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n"},"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n"},"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n",{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n"}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n","impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n","impliedFormat":1},{"version":"2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n","impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n","impliedFormat":1}],"root":[2,4,6],"options":{"composite":true,"emitDeclarationOnly":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1718,43 +1842,61 @@ export declare const aaaaa = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": 1 }, "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { + "original": { + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 + }, "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": 1 }, "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { + "original": { + "version": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedFormat": 1 + }, "version": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", - "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n" + "signature": "2661550180-export declare const b = 10;\nexport declare const aaaaa = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": 1 }, "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1794,7 +1936,7 @@ export declare const aaaaa = 10; "latestChangedDtsFile": "./g.d.ts" }, "version": "FakeTSVersion", - "size": 1409 + "size": 1541 } @@ -1896,7 +2038,7 @@ exports.a2 = 10; //// [/src/project1/src/c.js] file written with same contents //// [/src/project1/src/d.js] file written with same contents //// [/src/project1/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n"},{"version":"-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","signature":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","signature":"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1920,43 +2062,53 @@ exports.a2 = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 }, "version": "-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n" + "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedFormat": 1 }, "version": "-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;", - "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n" + "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1994,14 +2146,14 @@ exports.a2 = 10; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1494 + "size": 1584 } //// [/src/project2/src/e.js] file written with same contents //// [/src/project2/src/f.js] file written with same contents //// [/src/project2/src/g.js] file written with same contents //// [/src/project2/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n"},"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n",{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n"},"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n",{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n"}],"root":[2,4,6],"options":{"composite":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./e.ts","../../project1/src/a.d.ts","./f.ts","../../project1/src/b.d.ts","./g.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-13789510868-export const e = 10;","signature":"-4822840506-export declare const e = 10;\n","impliedFormat":1},{"version":"-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n","impliedFormat":1},{"version":"-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;","signature":"-5154070489-export declare const f = 10;\n","impliedFormat":1},{"version":"-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n","impliedFormat":1},{"version":"-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;","signature":"-5485300472-export declare const g = 10;\n","impliedFormat":1}],"root":[2,4,6],"options":{"composite":true},"fileIdsList":[[3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,3,5,2,4,6],"latestChangedDtsFile":"./g.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2026,43 +2178,61 @@ exports.a2 = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": 1 }, "version": "-13789510868-export const e = 10;", - "signature": "-4822840506-export declare const e = 10;\n" + "signature": "-4822840506-export declare const e = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/a.d.ts": { + "original": { + "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": 1 + }, "version": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", - "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n" + "signature": "-1973399231-export declare const a = 10;\nexport declare const aaa = 10;\n", + "impliedFormat": "commonjs" }, "./f.ts": { "original": { "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": 1 }, "version": "-2015135303-import { a } from \"../../project1/src/a\"; export const f = a;", - "signature": "-5154070489-export declare const f = 10;\n" + "signature": "-5154070489-export declare const f = 10;\n", + "impliedFormat": "commonjs" }, "../../project1/src/b.d.ts": { + "original": { + "version": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedFormat": 1 + }, "version": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", - "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n" + "signature": "-2237944013-export declare const b = 10;\nexport declare const aaaaa = 10;\nexport declare const a2 = 10;\n", + "impliedFormat": "commonjs" }, "./g.ts": { "original": { "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": 1 }, "version": "-2047954019-import { b } from \"../../project1/src/b\"; export const g = b;", - "signature": "-5485300472-export declare const g = 10;\n" + "signature": "-5485300472-export declare const g = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -2101,6 +2271,6 @@ exports.a2 = 10; "latestChangedDtsFile": "./g.d.ts" }, "version": "FakeTSVersion", - "size": 1414 + "size": 1546 } diff --git a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file-discrepancies.js b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file-discrepancies.js index c9bdc6828e595..cb241b5deea71 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file-discrepancies.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file-discrepancies.js @@ -8,13 +8,16 @@ CleanBuild: "fileInfos": { "../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "4646078106-export function foo() { }" + "version": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "1045484683-export function bar() { }" + "version": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" } }, "root": [ @@ -46,13 +49,16 @@ IncrementalBuild: "fileInfos": { "../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "4646078106-export function foo() { }" + "version": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "1045484683-export function bar() { }" + "version": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js index 94eb44935e92b..f868766edc4d1 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js @@ -48,7 +48,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":false},{"version":"1045484683-export function bar() { }","signature":false}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":false,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":false,"impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -63,24 +63,30 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "4646078106-export function foo() { }" + "version": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "1045484683-export function bar() { }" + "version": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" } }, "root": [ @@ -104,7 +110,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 823 + "size": 877 } @@ -161,7 +167,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"9819159940-export function foo() { }export function fooBar() { }","signature":false},{"version":"1045484683-export function bar() { }","signature":false}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"9819159940-export function foo() { }export function fooBar() { }","signature":false,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":false,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,24 +182,30 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9819159940-export function foo() { }export function fooBar() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "9819159940-export function foo() { }export function fooBar() { }" + "version": "9819159940-export function foo() { }export function fooBar() { }", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "1045484683-export function bar() { }" + "version": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +230,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 870 + "size": 924 } @@ -289,7 +301,7 @@ function bar() { } //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9819159940-export function foo() { }export function fooBar() { }","signature":"-9218003498-export declare function foo(): void;\nexport declare function fooBar(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"9819159940-export function foo() { }export function fooBar() { }","signature":"-9218003498-export declare function foo(): void;\nexport declare function fooBar(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -303,27 +315,33 @@ function bar() { } "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9819159940-export function foo() { }export function fooBar() { }", - "signature": "-9218003498-export declare function foo(): void;\nexport declare function fooBar(): void;\n" + "signature": "-9218003498-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedFormat": 1 }, "version": "9819159940-export function foo() { }export function fooBar() { }", - "signature": "-9218003498-export declare function foo(): void;\nexport declare function fooBar(): void;\n" + "signature": "-9218003498-export declare function foo(): void;\nexport declare function fooBar(): void;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -349,6 +367,6 @@ function bar() { } "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1034 + "size": 1088 } diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js index 5ced465072d38..e010b2a1ed581 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js @@ -112,7 +112,7 @@ exports.a = 1; //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"115643418-export declare const a: Unrestricted;\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"115643418-export declare const a: Unrestricted;\n","impliedFormat":1},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -126,28 +126,34 @@ exports.a = 1; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../shared/index.ts": { "original": { "version": "-22125360210-export const a: Unrestricted = 1;", - "signature": "115643418-export declare const a: Unrestricted;\n" + "signature": "115643418-export declare const a: Unrestricted;\n", + "impliedFormat": 1 }, "version": "-22125360210-export const a: Unrestricted = 1;", - "signature": "115643418-export declare const a: Unrestricted;\n" + "signature": "115643418-export declare const a: Unrestricted;\n", + "impliedFormat": "commonjs" }, "../../shared/typings-base/globals.d.ts": { "original": { "version": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4725476611-type Unrestricted = any;", "signature": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -174,7 +180,7 @@ exports.a = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1004 + "size": 1058 } //// [/src/target-tsc-build/webpack/index.d.ts] @@ -189,7 +195,7 @@ exports.b = 1; //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-6010538469-export declare const b: Unrestricted;\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-6010538469-export declare const b: Unrestricted;\n","impliedFormat":1},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -203,28 +209,34 @@ exports.b = 1; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../webpack/index.ts": { "original": { "version": "-14405273073-export const b: Unrestricted = 1;", - "signature": "-6010538469-export declare const b: Unrestricted;\n" + "signature": "-6010538469-export declare const b: Unrestricted;\n", + "impliedFormat": 1 }, "version": "-14405273073-export const b: Unrestricted = 1;", - "signature": "-6010538469-export declare const b: Unrestricted;\n" + "signature": "-6010538469-export declare const b: Unrestricted;\n", + "impliedFormat": "commonjs" }, "../../shared/typings-base/globals.d.ts": { "original": { "version": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4725476611-type Unrestricted = any;", "signature": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -251,6 +263,6 @@ exports.b = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1007 + "size": 1061 } diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js index 733c5a3860a5a..04f56e63b37bd 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js @@ -113,7 +113,7 @@ exports.a = 1; //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"115643418-export declare const a: Unrestricted;\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../shared/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22125360210-export const a: Unrestricted = 1;","signature":"115643418-export declare const a: Unrestricted;\n","impliedFormat":1},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,28 +127,34 @@ exports.a = 1; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../shared/index.ts": { "original": { "version": "-22125360210-export const a: Unrestricted = 1;", - "signature": "115643418-export declare const a: Unrestricted;\n" + "signature": "115643418-export declare const a: Unrestricted;\n", + "impliedFormat": 1 }, "version": "-22125360210-export const a: Unrestricted = 1;", - "signature": "115643418-export declare const a: Unrestricted;\n" + "signature": "115643418-export declare const a: Unrestricted;\n", + "impliedFormat": "commonjs" }, "../../shared/typings-base/globals.d.ts": { "original": { "version": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4725476611-type Unrestricted = any;", "signature": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -175,7 +181,7 @@ exports.a = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1004 + "size": 1058 } //// [/src/target-tsc-build/webpack/index.d.ts] @@ -190,7 +196,7 @@ exports.b = 1; //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-6010538469-export declare const b: Unrestricted;\n"},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../webpack/index.ts","../../shared/typings-base/globals.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14405273073-export const b: Unrestricted = 1;","signature":"-6010538469-export declare const b: Unrestricted;\n","impliedFormat":1},{"version":"4725476611-type Unrestricted = any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../.."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/target-tsc-build/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -204,28 +210,34 @@ exports.b = 1; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../webpack/index.ts": { "original": { "version": "-14405273073-export const b: Unrestricted = 1;", - "signature": "-6010538469-export declare const b: Unrestricted;\n" + "signature": "-6010538469-export declare const b: Unrestricted;\n", + "impliedFormat": 1 }, "version": "-14405273073-export const b: Unrestricted = 1;", - "signature": "-6010538469-export declare const b: Unrestricted;\n" + "signature": "-6010538469-export declare const b: Unrestricted;\n", + "impliedFormat": "commonjs" }, "../../shared/typings-base/globals.d.ts": { "original": { "version": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4725476611-type Unrestricted = any;", "signature": "4725476611-type Unrestricted = any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -252,6 +264,6 @@ exports.b = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1007 + "size": 1061 } diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js index 6ab89de627a27..fe2943cc149f6 100644 --- a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js +++ b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js @@ -129,7 +129,7 @@ exports.x = 10; //// [/src/src/folder/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/src/folder/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -142,19 +142,23 @@ exports.x = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -174,7 +178,7 @@ exports.x = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 820 + "size": 856 } //// [/src/src/folder2/index.d.ts] @@ -189,7 +193,7 @@ exports.x = 10; //// [/src/src/folder2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/src/folder2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -202,19 +206,23 @@ exports.x = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -234,7 +242,7 @@ exports.x = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 820 + "size": 856 } //// [/src/tests/index.d.ts] @@ -249,7 +257,7 @@ exports.x = 10; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -262,19 +270,23 @@ exports.x = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -294,7 +306,7 @@ exports.x = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 817 + "size": 853 } diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js index 591c50140ad2a..c9bd98ecd789b 100644 --- a/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js +++ b/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js @@ -116,7 +116,7 @@ exports.b = 10; //// [/src/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13368947479-export const b = 10;","signature":"-3829150557-export declare const b = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-13368947479-export const b = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/b.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -129,19 +129,23 @@ exports.b = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-13368947479-export const b = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-13368947479-export const b = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -161,7 +165,7 @@ exports.b = 10; "latestChangedDtsFile": "./src/b.d.ts" }, "version": "FakeTSVersion", - "size": 817 + "size": 853 } //// [/src/project3/src/c.d.ts] @@ -176,7 +180,7 @@ exports.c = 10; //// [/src/project3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/c.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12077479510-export const c = 10;","signature":"-4160380540-export declare const c = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/c.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/c.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12077479510-export const c = 10;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/c.d.ts"},"version":"FakeTSVersion"} //// [/src/project3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -189,19 +193,23 @@ exports.c = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "-12077479510-export const c = 10;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "-12077479510-export const c = 10;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +229,7 @@ exports.c = 10; "latestChangedDtsFile": "./src/c.d.ts" }, "version": "FakeTSVersion", - "size": 817 + "size": 853 } //// [/src/project4/src/d.d.ts] @@ -236,7 +244,7 @@ exports.d = 10; //// [/src/project4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10786011541-export const d = 10;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10786011541-export const d = 10;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/d.d.ts"},"version":"FakeTSVersion"} //// [/src/project4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -249,19 +257,23 @@ exports.d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/d.ts": { "original": { "version": "-10786011541-export const d = 10;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-10786011541-export const d = 10;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -281,7 +293,7 @@ exports.d = 10; "latestChangedDtsFile": "./src/d.d.ts" }, "version": "FakeTSVersion", - "size": 817 + "size": 853 } @@ -336,7 +348,7 @@ exports.cc = 10; //// [/src/project3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/c.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12481904019-export const cc = 10;","signature":"-2549218137-export declare const cc = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/c.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/c.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12481904019-export const cc = 10;","signature":"-2549218137-export declare const cc = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/c.d.ts"},"version":"FakeTSVersion"} //// [/src/project3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,19 +361,23 @@ exports.cc = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "-12481904019-export const cc = 10;", - "signature": "-2549218137-export declare const cc = 10;\n" + "signature": "-2549218137-export declare const cc = 10;\n", + "impliedFormat": 1 }, "version": "-12481904019-export const cc = 10;", - "signature": "-2549218137-export declare const cc = 10;\n" + "signature": "-2549218137-export declare const cc = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -381,7 +397,7 @@ exports.cc = 10; "latestChangedDtsFile": "./src/c.d.ts" }, "version": "FakeTSVersion", - "size": 819 + "size": 855 } //// [/src/project4/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js index 6595695655148..a13d91bea8107 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js @@ -172,7 +172,7 @@ function getVar() { //// [/src/solution/lib/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../src/common/types.d.ts","../src/common/nominal.ts","../src/subproject/index.ts","../src/subproject2/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},{"version":"-8103970050-/// \nexport declare type Nominal = MyNominal;","signature":"-29966695877-/// \nexport declare type Nominal = MyNominal;\n"},{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n"},{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n"}],"root":[[2,5]],"options":{"composite":true,"outDir":"./","rootDir":".."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./src/subProject2/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../src/common/types.d.ts","../src/common/nominal.ts","../src/subproject/index.ts","../src/subproject2/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":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103970050-/// \nexport declare type Nominal = MyNominal;","signature":"-29966695877-/// \nexport declare type Nominal = MyNominal;\n","impliedFormat":1},{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedFormat":1},{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"outDir":"./","rootDir":".."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./src/subProject2/index.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -199,44 +199,54 @@ function getVar() { "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/common/types.d.ts": { "original": { "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", "signature": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/common/nominal.ts": { "original": { "version": "-8103970050-/// \nexport declare type Nominal = MyNominal;", - "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n" + "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": 1 }, "version": "-8103970050-/// \nexport declare type Nominal = MyNominal;", - "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n" + "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": "commonjs" }, "../src/subproject/index.ts": { "original": { "version": "-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": 1 }, "version": "-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": "commonjs" }, "../src/subproject2/index.ts": { "original": { "version": "2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n" + "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedFormat": 1 }, "version": "2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n" + "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -279,6 +289,6 @@ function getVar() { "latestChangedDtsFile": "./src/subProject2/index.d.ts" }, "version": "FakeTSVersion", - "size": 2047 + "size": 2137 } diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js index 1ffa242565da1..af7fef9202e0a 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js @@ -155,7 +155,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/src/solution/lib/src/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../../../src/common/nominal.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},{"version":"-8103970050-/// \nexport declare type Nominal = MyNominal;","signature":"-29966695877-/// \nexport declare type Nominal = MyNominal;\n"}],"root":[3],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../../../src/common/nominal.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103970050-/// \nexport declare type Nominal = MyNominal;","signature":"-29966695877-/// \nexport declare type Nominal = MyNominal;\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/src/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,28 +174,34 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../src/common/types.d.ts": { "original": { "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", "signature": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../src/common/nominal.ts": { "original": { "version": "-8103970050-/// \nexport declare type Nominal = MyNominal;", - "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n" + "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": 1 }, "version": "-8103970050-/// \nexport declare type Nominal = MyNominal;", - "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n" + "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -222,7 +228,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./nominal.d.ts" }, "version": "FakeTSVersion", - "size": 1314 + "size": 1368 } //// [/src/solution/lib/src/subProject/index.d.ts] @@ -236,7 +242,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/src/solution/lib/src/subProject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../../../src/subproject/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},"-29966695877-/// \nexport declare type Nominal = MyNominal;\n",{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n"}],"root":[4],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../../../src/subproject/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":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedFormat":1},{"version":"-29966695877-/// \nexport declare type Nominal = MyNominal;\n","impliedFormat":1},{"version":"-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;","signature":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/src/subProject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,32 +265,43 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../src/common/types.d.ts": { "original": { "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", "signature": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../common/nominal.d.ts": { + "original": { + "version": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": 1 + }, "version": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", - "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n" + "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": "commonjs" }, "../../../src/subproject/index.ts": { "original": { "version": "-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": 1 }, "version": "-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -315,7 +332,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1436 + "size": 1520 } //// [/src/solution/lib/src/subProject2/index.d.ts] @@ -340,7 +357,7 @@ function getVar() { //// [/src/solution/lib/src/subProject2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../subproject/index.d.ts","../../../src/subproject2/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true},"-29966695877-/// \nexport declare type Nominal = MyNominal;\n","-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n",{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n"}],"root":[5],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,4,2,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../lib/lib.d.ts","../../../src/common/types.d.ts","../common/nominal.d.ts","../subproject/index.d.ts","../../../src/subproject2/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":"23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};","affectsGlobalScope":true,"impliedFormat":1},{"version":"-29966695877-/// \nexport declare type Nominal = MyNominal;\n","impliedFormat":1},{"version":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedFormat":1},{"version":"2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}","signature":"-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"outDir":"../..","rootDir":"../../.."},"fileIdsList":[[2],[3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,3,4,2,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/solution/lib/src/subProject2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -367,36 +384,52 @@ function getVar() { "../../../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../src/common/types.d.ts": { "original": { "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", "signature": "23815050294-declare type MyNominal = T & {\n specialKey: Name;\n};", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../common/nominal.d.ts": { + "original": { + "version": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": 1 + }, "version": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", - "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n" + "signature": "-29966695877-/// \nexport declare type Nominal = MyNominal;\n", + "impliedFormat": "commonjs" }, "../subproject/index.d.ts": { + "original": { + "version": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": 1 + }, "version": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": "commonjs" }, "../../../src/subproject2/index.ts": { "original": { "version": "2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n" + "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedFormat": 1 }, "version": "2747033208-import { MyNominal } from '../subProject/index';\nconst variable = {\n key: 'value' as MyNominal,\n};\nexport function getVar(): keyof typeof variable {\n return 'key';\n}", - "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n" + "signature": "-29417180885-import { MyNominal } from '../subProject/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -431,6 +464,6 @@ function getVar() { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1740 + "size": 1854 } diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js index d16f98e9da56b..5d9154ef86fb4 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js @@ -104,7 +104,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/src/packages/pkg1/lib/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2072077482-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}","signature":"-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2072077482-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}","signature":"-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg1/lib/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -117,19 +117,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/index.ts": { "original": { "version": "-2072077482-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}", - "signature": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n" + "signature": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "impliedFormat": 1 }, "version": "-2072077482-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}", - "signature": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n" + "signature": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -150,7 +154,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 985 + "size": 1021 } //// [/src/packages/pkg2/lib/src/index.d.ts] @@ -168,7 +172,7 @@ function fn4() { //// [/src/packages/pkg2/lib/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../../pkg1/lib/src/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n",{"version":"8515046367-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}","signature":"-8485768540-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\n"}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../pkg1/lib/src/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n","impliedFormat":1},{"version":"8515046367-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}","signature":"-8485768540-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg2/lib/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,23 +191,32 @@ function fn4() { "../../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../pkg1/lib/src/index.d.ts": { + "original": { + "version": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "impliedFormat": 1 + }, "version": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", - "signature": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n" + "signature": "-6291959392-export interface IThing {\n a: string;\n}\nexport interface IThings {\n thing1: IThing;\n}\n", + "impliedFormat": "commonjs" }, "../src/index.ts": { "original": { "version": "8515046367-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}", - "signature": "-8485768540-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\n" + "signature": "-8485768540-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\n", + "impliedFormat": 1 }, "version": "8515046367-import { IThings } from '@fluentui/pkg1';\nexport function fn4() {\n const a: IThings = { thing1: { a: 'b' } };\n return a.thing1;\n}", - "signature": "-8485768540-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\n" + "signature": "-8485768540-export declare function fn4(): import(\"@fluentui/pkg1\").IThing;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -229,6 +242,6 @@ function fn4() { "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1168 + "size": 1234 } diff --git a/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js b/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js index cb8c1581fc1f5..87171c86b52d5 100644 --- a/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js +++ b/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js @@ -220,7 +220,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -249,27 +249,49 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { + "original": { + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "impliedFormat": 1 + }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n" + "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { + "original": { + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 + }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { + "original": { + "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "impliedFormat": 1 + }, "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" + "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -350,6 +372,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2200 + "size": 2338 } diff --git a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js index 62e491858cc7d..549eda6cd89de 100644 --- a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js +++ b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js @@ -217,7 +217,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -243,35 +243,51 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { "original": { "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../core/utilities.d.ts": { + "original": { + "version": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 + }, "version": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { "original": { "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -321,11 +337,11 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2221 + "size": 2335 } //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -338,19 +354,23 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { "original": { "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 }, "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -380,7 +400,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1324 + "size": 1360 } //// [/user/username/projects/demo/lib/core/utilities.d.ts] @@ -404,7 +424,7 @@ function lastElementOf(arr) { //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1},{"version":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -429,31 +449,50 @@ function lastElementOf(arr) { "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../animals/animal.d.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../animals/dog.d.ts": { + "original": { + "version": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 + }, "version": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" }, "../animals/index.d.ts": { + "original": { + "version": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 + }, "version": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../../zoo/zoo.ts": { "original": { "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", - "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" + "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedFormat": 1 }, "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", - "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" + "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -497,7 +536,7 @@ function lastElementOf(arr) { "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1763 + "size": 1889 } //// [/user/username/projects/demo/lib/zoo/zoo.d.ts] diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index aa7cc013282d6..321f4fddb998c 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -118,7 +118,7 @@ export { C } from "./c"; {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,39 +150,52 @@ export { C } from "./c"; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 }, "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 }, "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./src/a.ts": { "original": { "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", - "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" + "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": 1 }, "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", - "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" + "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -239,7 +252,7 @@ export { C } from "./c"; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1673 + "size": 1775 } @@ -283,7 +296,7 @@ export interface A { //// [/src/lib/c.d.ts.map] file written with same contents //// [/src/lib/index.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -315,39 +328,52 @@ export interface A { "../lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 }, "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 }, "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./src/a.ts": { "original": { "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": 1 }, "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -404,6 +430,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1693 + "size": 1795 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index f804c8863c301..1e21ec66161af 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -106,7 +106,7 @@ export { C } from "./c"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -138,39 +138,52 @@ export { C } from "./c"; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 }, "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 }, "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./src/a.ts": { "original": { "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", - "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" + "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": 1 }, "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", - "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" + "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -226,7 +239,7 @@ export { C } from "./c"; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1651 + "size": 1753 } @@ -264,7 +277,7 @@ export interface A { //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -296,39 +309,52 @@ export interface A { "../lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 }, "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 }, "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./src/a.ts": { "original": { "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": 1 }, "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -384,6 +410,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1671 + "size": 1773 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 2ff6ce1527973..06a05d1645b09 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -105,7 +105,7 @@ export interface C { {"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n","impliedFormat":1},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -128,35 +128,43 @@ export interface C { "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/a.ts": { "original": { "version": "12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", - "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" + "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedFormat": 1 }, "version": "12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", - "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" + "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 }, "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 }, "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -203,7 +211,7 @@ export interface C { "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1558 + "size": 1630 } @@ -237,7 +245,7 @@ exitCode:: ExitStatus.Success {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n","impliedFormat":1},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,35 +268,43 @@ exitCode:: ExitStatus.Success "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/a.ts": { "original": { "version": "12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", - "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" + "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedFormat": 1 }, "version": "12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", - "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" + "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n", + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 }, "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 }, "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -335,7 +351,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1571 + "size": 1643 } @@ -381,7 +397,7 @@ export interface A { //// [/src/lib/b.d.ts.map] file written with same contents //// [/src/lib/c.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedFormat":1},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -404,35 +420,43 @@ export interface A { "../lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/a.ts": { "original": { "version": "17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": 1 }, "version": "17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": "commonjs" }, "./src/c.ts": { "original": { "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 }, "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./src/b.ts": { "original": { "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 }, "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -479,6 +503,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1596 + "size": 1668 } diff --git a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js index 0c42054b40fb8..a9132ee604bae 100644 --- a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js +++ b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js @@ -66,7 +66,7 @@ function multiply(a, b) { return a * b; } //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"7987260467-export function multiply(a: number, b: number) { return a * b; }","signature":"-8675294677-export declare function multiply(a: number, b: number): number;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"7987260467-export function multiply(a: number, b: number) { return a * b; }","signature":"-8675294677-export declare function multiply(a: number, b: number): number;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -79,19 +79,23 @@ function multiply(a, b) { return a * b; } "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "7987260467-export function multiply(a: number, b: number) { return a * b; }", - "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n" + "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "7987260467-export function multiply(a: number, b: number) { return a * b; }", - "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n" + "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -114,6 +118,6 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 962 + "size": 998 } diff --git a/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js index 9ace849f4bd95..95aaf3e0389fa 100644 --- a/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js @@ -56,7 +56,7 @@ export declare const x = 10; //// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"6873164248-// some comment\nexport const x = 10;\n","signature":"-6821242887-export declare const x = 10;\n"}],"root":[2],"options":{"composite":true,"removeComments":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"6873164248-// some comment\nexport const x = 10;\n","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"removeComments":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -69,19 +69,23 @@ export declare const x = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "6873164248-// some comment\nexport const x = 10;\n", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "6873164248-// some comment\nexport const x = 10;\n", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -102,7 +106,7 @@ export declare const x = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 787 + "size": 823 } diff --git a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js index 0c94d76d37061..5909a10591a5e 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js +++ b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js @@ -46,10 +46,18 @@ Output:: [12:00:12 AM] Building project '/src/child/tsconfig.json'... +File '/src/child/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../child/child2' from '/src/child/child.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/child/child2.ts' exists - use it as a name resolution result. ======== Module name '../child/child2' was successfully resolved to '/src/child/child2.ts'. ======== +File '/src/child/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.d.ts Default library for target 'es5' src/child/child2.ts diff --git a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js index 829a1ea0422ad..6ec545528c142 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js +++ b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js @@ -43,11 +43,19 @@ Output:: [12:00:12 AM] Building project '/src/child/tsconfig.json'... +File '/src/child/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../child/child2' from '/src/child/child.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/src/child/child2', target file types: TypeScript, Declaration. File '/src/child/child2.ts' exists - use it as a name resolution result. ======== Module name '../child/child2' was successfully resolved to '/src/child/child2.ts'. ======== +File '/src/child/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.d.ts Default library for target 'es5' src/child/child2.ts diff --git a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-discrepancies.js b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-discrepancies.js index 910a4990c83d4..6c741a3e1f43b 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-discrepancies.js +++ b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-discrepancies.js @@ -8,10 +8,12 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./child.ts": { - "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n" + "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -52,10 +54,12 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./child.ts": { - "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n" + "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ 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 56295d3feb1ae..6e2b870be992f 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 @@ -69,10 +69,18 @@ Output:: [12:00:15 AM] Building project '/src/child/tsconfig.json'... +File '/src/child/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../child/child2' from '/src/child/child.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/child/child2.ts' exists - use it as a name resolution result. ======== Module name '../child/child2' was successfully resolved to '/src/child/child2.ts'. ======== +File '/src/child/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.d.ts Default library for target 'es5' src/child/child2.ts @@ -84,6 +92,11 @@ src/child/child.ts [12:00:22 AM] Building project '/src/main/tsconfig.json'... +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/src/main/package.json' does not exist. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'child' from '/src/main/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/main/child.ts' does not exist. @@ -106,6 +119,8 @@ File '/src/child.jsx' does not exist. File '/child.js' does not exist. File '/child.jsx' does not exist. ======== Module name 'child' was not resolved. ======== +File '/lib/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.d.ts Default library for target 'es5' src/childResult.d.ts @@ -143,7 +158,7 @@ define("child", ["require", "exports", "child2"], function (require, exports, ch //// [/src/childResult.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./child/child2.ts","./child/child.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"6507293504-export function child2() {\n}\n","impliedFormat":1},{"version":"-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n","impliedFormat":1}],"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] { @@ -154,9 +169,30 @@ define("child", ["require", "exports", "child2"], function (require, exports, ch "./child/child.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; };", - "./child/child2.ts": "6507293504-export function child2() {\n}\n", - "./child/child.ts": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./child/child2.ts": { + "original": { + "version": "6507293504-export function child2() {\n}\n", + "impliedFormat": 1 + }, + "version": "6507293504-export function child2() {\n}\n", + "impliedFormat": "commonjs" + }, + "./child/child.ts": { + "original": { + "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", + "impliedFormat": 1 + }, + "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -177,7 +213,7 @@ define("child", ["require", "exports", "child2"], function (require, exports, ch "latestChangedDtsFile": "./childResult.d.ts" }, "version": "FakeTSVersion", - "size": 1007 + "size": 1097 } //// [/src/mainResult.d.ts] @@ -198,7 +234,7 @@ define("main", ["require", "exports", "child"], function (require, exports, chil //// [/src/mainResult.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./childresult.d.ts","./main/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","impliedFormat":1},{"version":"-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n","impliedFormat":1}],"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] { @@ -209,9 +245,30 @@ define("main", ["require", "exports", "child"], function (require, exports, chil "./main/main.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; };", - "./childresult.d.ts": "2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n", - "./main/main.ts": "-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./childresult.d.ts": { + "original": { + "version": "2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "./main/main.ts": { + "original": { + "version": "-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n", + "impliedFormat": 1 + }, + "version": "-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -228,7 +285,7 @@ define("main", ["require", "exports", "child"], function (require, exports, chil "latestChangedDtsFile": "./mainResult.d.ts" }, "version": "FakeTSVersion", - "size": 1022 + "size": 1112 } @@ -248,6 +305,9 @@ Output:: [12:00:31 AM] Building project '/src/child/tsconfig.json'... +File '/src/child/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../child/child2' from '/src/child/child.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/child/child2.ts' does not exist. @@ -256,6 +316,8 @@ File '/src/child/child2.d.ts' does not exist. File '/src/child/child2.js' does not exist. File '/src/child/child2.jsx' does not exist. ======== Module name '../child/child2' was not resolved. ======== +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. src/child/child.ts:1:24 - error TS2792: Cannot find module '../child/child2'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? 1 import { child2 } from "../child/child2"; diff --git a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js index 69439e1df8ad5..040b7ca9fb265 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js +++ b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js @@ -65,11 +65,19 @@ Output:: [12:00:15 AM] Building project '/src/child/tsconfig.json'... +File '/src/child/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../child/child2' from '/src/child/child.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/src/child/child2', target file types: TypeScript, Declaration. File '/src/child/child2.ts' exists - use it as a name resolution result. ======== Module name '../child/child2' was successfully resolved to '/src/child/child2.ts'. ======== +File '/src/child/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.d.ts Default library for target 'es5' src/child/child2.ts @@ -81,11 +89,19 @@ src/child/child.ts [12:00:24 AM] Building project '/src/main/tsconfig.json'... +File '/src/main/package.json' does not exist. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '../child/child' from '/src/main/main.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/src/child/child', target file types: TypeScript, Declaration. File '/src/child/child.ts' exists - use it as a name resolution result. ======== Module name '../child/child' was successfully resolved to '/src/child/child.ts'. ======== +File '/src/child/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/lib/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.d.ts Default library for target 'es5' src/child/child.d.ts @@ -123,7 +139,7 @@ function child2() { //// [/src/child/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./child2.ts","./child.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"6507293504-export function child2() {\n}\n","signature":"-5501507595-export declare function child2(): void;\n"},{"version":"-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n","signature":"-1814288093-export declare function child(): void;\n"}],"root":[2,3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./child.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./child2.ts","./child.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"6507293504-export function child2() {\n}\n","signature":"-5501507595-export declare function child2(): void;\n","impliedFormat":1},{"version":"-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n","signature":"-1814288093-export declare function child(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./child.d.ts"},"version":"FakeTSVersion"} //// [/src/child/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -142,27 +158,33 @@ function child2() { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./child2.ts": { "original": { "version": "6507293504-export function child2() {\n}\n", - "signature": "-5501507595-export declare function child2(): void;\n" + "signature": "-5501507595-export declare function child2(): void;\n", + "impliedFormat": 1 }, "version": "6507293504-export function child2() {\n}\n", - "signature": "-5501507595-export declare function child2(): void;\n" + "signature": "-5501507595-export declare function child2(): void;\n", + "impliedFormat": "commonjs" }, "./child.ts": { "original": { "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", - "signature": "-1814288093-export declare function child(): void;\n" + "signature": "-1814288093-export declare function child(): void;\n", + "impliedFormat": 1 }, "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", - "signature": "-1814288093-export declare function child(): void;\n" + "signature": "-1814288093-export declare function child(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -191,7 +213,7 @@ function child2() { "latestChangedDtsFile": "./child.d.ts" }, "version": "FakeTSVersion", - "size": 1065 + "size": 1119 } //// [/src/main/main.d.ts] @@ -209,7 +231,7 @@ function main() { //// [/src/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../child/child.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-1814288093-export declare function child(): void;\n",{"version":"-8540107489-import { child } from \"../child/child\";\nexport function main() {\n child();\n}\n","signature":"-2471343004-export declare function main(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../child/child.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1814288093-export declare function child(): void;\n","impliedFormat":1},{"version":"-8540107489-import { child } from \"../child/child\";\nexport function main() {\n child();\n}\n","signature":"-2471343004-export declare function main(): void;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/src/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -228,23 +250,32 @@ function main() { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../child/child.d.ts": { + "original": { + "version": "-1814288093-export declare function child(): void;\n", + "impliedFormat": 1 + }, "version": "-1814288093-export declare function child(): void;\n", - "signature": "-1814288093-export declare function child(): void;\n" + "signature": "-1814288093-export declare function child(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-8540107489-import { child } from \"../child/child\";\nexport function main() {\n child();\n}\n", - "signature": "-2471343004-export declare function main(): void;\n" + "signature": "-2471343004-export declare function main(): void;\n", + "impliedFormat": 1 }, "version": "-8540107489-import { child } from \"../child/child\";\nexport function main() {\n child();\n}\n", - "signature": "-2471343004-export declare function main(): void;\n" + "signature": "-2471343004-export declare function main(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -269,7 +300,7 @@ function main() { "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 993 + "size": 1059 } @@ -291,6 +322,9 @@ Output:: [12:00:35 AM] Building project '/src/child/tsconfig.json'... +File '/src/child/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../child/child2' from '/src/child/child.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/src/child/child2', target file types: TypeScript, Declaration. @@ -303,6 +337,8 @@ File '/src/child/child2.js' does not exist. File '/src/child/child2.jsx' does not exist. Directory '/src/child/child2' does not exist, skipping all lookups in it. ======== Module name '../child/child2' was not resolved. ======== +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. src/child/child.ts:1:24 - error TS2307: Cannot find module '../child/child2' or its corresponding type declarations. 1 import { child2 } from "../child/child2"; @@ -323,7 +359,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/child/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./child.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n","signature":"-1814288093-export declare function child(): void;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./child.ts","start":23,"length":17,"messageText":"Cannot find module '../child/child2' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"latestChangedDtsFile":"./child.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./child.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n","signature":"-1814288093-export declare function child(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./child.ts","start":23,"length":17,"messageText":"Cannot find module '../child/child2' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"latestChangedDtsFile":"./child.d.ts"},"version":"FakeTSVersion"} //// [/src/child/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -336,19 +372,23 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./child.ts": { "original": { "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", - "signature": "-1814288093-export declare function child(): void;\n" + "signature": "-1814288093-export declare function child(): void;\n", + "impliedFormat": 1 }, "version": "-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n", - "signature": "-1814288093-export declare function child(): void;\n" + "signature": "-1814288093-export declare function child(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -386,6 +426,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "latestChangedDtsFile": "./child.d.ts" }, "version": "FakeTSVersion", - "size": 1095 + "size": 1131 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js index 21895d2188838..1fe011eaa836a 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js @@ -156,7 +156,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,48 +182,63 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 + }, "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -265,7 +280,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret ] }, "version": "FakeTSVersion", - "size": 2514 + "size": 2634 } @@ -317,7 +332,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -343,48 +358,63 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 + }, "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -426,7 +456,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] }, "version": "FakeTSVersion", - "size": 2476 + "size": 2596 } @@ -478,7 +508,7 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -504,48 +534,63 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 + }, "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -587,6 +632,6 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( ] }, "version": "FakeTSVersion", - "size": 2514 + "size": 2634 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js index 0034b5fe7a36d..b9faed3b53f04 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js @@ -156,7 +156,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,48 +182,63 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 + }, "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -265,7 +280,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret ] }, "version": "FakeTSVersion", - "size": 2514 + "size": 2634 } @@ -318,7 +333,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -344,48 +359,63 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 + }, "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -427,7 +457,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] }, "version": "FakeTSVersion", - "size": 2476 + "size": 2596 } @@ -480,7 +510,7 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -506,48 +536,63 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 + }, "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -589,6 +634,6 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( ] }, "version": "FakeTSVersion", - "size": 2514 + "size": 2634 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index f8dc27f137af1..1cae761bec806 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -160,7 +160,7 @@ var bar_2 = require("./bar"); //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -186,52 +186,64 @@ var bar_2 = require("./bar"); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { "original": { "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 }, "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -273,7 +285,7 @@ var bar_2 = require("./bar"); ] }, "version": "FakeTSVersion", - "size": 2651 + "size": 2759 } @@ -315,7 +327,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -341,44 +353,62 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", + "impliedFormat": 1 + }, "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");" + "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", + "impliedFormat": "commonjs" }, "../index.ts": { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "impliedFormat": 1 + }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n" + "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -450,7 +480,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2531 + "size": 2663 } @@ -488,7 +518,7 @@ exitCode:: ExitStatus.Success //// [/src/obj/index.d.ts] file written with same contents //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -514,52 +544,64 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", - "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" + "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { "original": { "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 }, "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -601,7 +643,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 2651 + "size": 2759 } @@ -643,7 +685,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -669,44 +711,62 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { + "original": { + "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", + "impliedFormat": 1 + }, "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");" + "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", + "impliedFormat": "commonjs" }, "../index.ts": { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "impliedFormat": 1 + }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n" + "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -778,7 +838,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2531 + "size": 2663 } @@ -834,7 +894,7 @@ var bar_2 = require("./bar"); //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n","impliedFormat":1},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedFormat":1},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n","impliedFormat":1},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -860,52 +920,64 @@ var bar_2 = require("./bar"); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../bar.ts": { "original": { "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", - "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" + "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "../bundling.ts": { "original": { "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": 1 }, "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", - "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" + "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedFormat": "commonjs" }, "../global.d.ts": { "original": { "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../lazyindex.ts": { "original": { "version": "-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": 1 }, "version": "-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();", - "signature": "-6956449754-export { default as bar } from './bar';\n" + "signature": "-6956449754-export { default as bar } from './bar';\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": 1 }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -947,6 +1019,6 @@ var bar_2 = require("./bar"); ] }, "version": "FakeTSVersion", - "size": 2605 + "size": 2713 } diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js index 4cc5206de6752..7e6c616f2679f 100644 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js @@ -142,7 +142,7 @@ module.exports = {}; //// [/lib/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib.d.ts","../../src/common/nominal.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},{"version":"-9003723607-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};\n","signature":"-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n"}],"root":[2],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib.d.ts","../../src/common/nominal.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9003723607-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};\n","signature":"-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n","impliedFormat":1}],"root":[2],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} //// [/lib/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -155,19 +155,23 @@ module.exports = {}; "../lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/common/nominal.js": { "original": { "version": "-9003723607-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};\n", - "signature": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n" + "signature": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": 1 }, "version": "-9003723607-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\nmodule.exports = {};\n", - "signature": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n" + "signature": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -193,11 +197,11 @@ module.exports = {}; "latestChangedDtsFile": "./nominal.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1308 } //// [/lib/sub-project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib.d.ts","../common/nominal.d.ts","../../src/sub-project/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n","-23375763082-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */\n"],"root":[3],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[2,1,[3,[{"file":"../../src/sub-project/index.js","start":9,"length":7,"messageText":"'Nominal' is a type and cannot be imported in JavaScript files. Use 'import(\"../common/nominal\").Nominal' in a JSDoc type annotation.","category":1,"code":18042}]]],"affectedFilesPendingEmit":[3],"emitSignatures":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib.d.ts","../common/nominal.d.ts","../../src/sub-project/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n","impliedFormat":1},{"version":"-23375763082-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */\n","impliedFormat":1}],"root":[3],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[2,1,[3,[{"file":"../../src/sub-project/index.js","start":9,"length":7,"messageText":"'Nominal' is a type and cannot be imported in JavaScript files. Use 'import(\"../common/nominal\").Nominal' in a JSDoc type annotation.","category":1,"code":18042}]]],"affectedFilesPendingEmit":[3],"emitSignatures":[3]},"version":"FakeTSVersion"} //// [/lib/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -216,19 +220,31 @@ module.exports = {}; "../lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../common/nominal.d.ts": { + "original": { + "version": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": 1 + }, "version": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "signature": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n" + "signature": "-13020584488-export type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": "commonjs" }, "../../src/sub-project/index.js": { + "original": { + "version": "-23375763082-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */\n", + "impliedFormat": 1 + }, "version": "-23375763082-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */\n", - "signature": "-23375763082-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */\n" + "signature": "-23375763082-import { Nominal } from '../common/nominal';\n\n/**\n * @typedef {Nominal} MyNominal\n */\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -279,6 +295,6 @@ module.exports = {}; ] }, "version": "FakeTSVersion", - "size": 1567 + "size": 1645 } diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js index cc685f6d8da58..77f5e8caadec0 100644 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js @@ -137,7 +137,7 @@ exports.m = common_1.default; //// [/out/sub-project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../src/common/obj.json","../../src/common/index.d.ts","../../src/sub-project/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"2151907832-{\n \"val\": 42\n}","-5032674136-import x = require(\"./obj.json\");\nexport = x;\n",{"version":"-14684157955-import mod from '../common';\n\nexport const m = mod;\n","signature":"-12566182521-export const m: {\n val: number;\n};\n"}],"root":[4],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../../src/common/obj.json","../../src/common/index.d.ts","../../src/sub-project/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},"2151907832-{\n \"val\": 42\n}",{"version":"-5032674136-import x = require(\"./obj.json\");\nexport = x;\n","impliedFormat":1},{"version":"-14684157955-import mod from '../common';\n\nexport const m = mod;\n","signature":"-12566182521-export const m: {\n val: number;\n};\n","impliedFormat":1}],"root":[4],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/out/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -160,27 +160,36 @@ exports.m = common_1.default; "../../lib/lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/common/obj.json": { "version": "2151907832-{\n \"val\": 42\n}", "signature": "2151907832-{\n \"val\": 42\n}" }, "../../src/common/index.d.ts": { + "original": { + "version": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n", + "impliedFormat": 1 + }, "version": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n", - "signature": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n" + "signature": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n", + "impliedFormat": "commonjs" }, "../../src/sub-project/index.js": { "original": { "version": "-14684157955-import mod from '../common';\n\nexport const m = mod;\n", - "signature": "-12566182521-export const m: {\n val: number;\n};\n" + "signature": "-12566182521-export const m: {\n val: number;\n};\n", + "impliedFormat": 1 }, "version": "-14684157955-import mod from '../common';\n\nexport const m = mod;\n", - "signature": "-12566182521-export const m: {\n val: number;\n};\n" + "signature": "-12566182521-export const m: {\n val: number;\n};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -216,7 +225,7 @@ exports.m = common_1.default; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1420 + "size": 1486 } //// [/out/sub-project-2/index.d.ts] @@ -241,7 +250,7 @@ function getVar() { //// [/out/sub-project-2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../sub-project/index.d.ts","../../src/sub-project-2/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-12566182521-export const m: {\n val: number;\n};\n",{"version":"13545386800-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}\n","signature":"2403991005-export function getVar(): {\n key: {\n val: number;\n };\n};\n"}],"root":[3],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../sub-project/index.d.ts","../../src/sub-project-2/index.js"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12566182521-export const m: {\n val: number;\n};\n","impliedFormat":1},{"version":"13545386800-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}\n","signature":"2403991005-export function getVar(): {\n key: {\n val: number;\n };\n};\n","impliedFormat":1}],"root":[3],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"..","rootDir":"../../src","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/out/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,23 +269,32 @@ function getVar() { "../../lib/lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../sub-project/index.d.ts": { + "original": { + "version": "-12566182521-export const m: {\n val: number;\n};\n", + "impliedFormat": 1 + }, "version": "-12566182521-export const m: {\n val: number;\n};\n", - "signature": "-12566182521-export const m: {\n val: number;\n};\n" + "signature": "-12566182521-export const m: {\n val: number;\n};\n", + "impliedFormat": "commonjs" }, "../../src/sub-project-2/index.js": { "original": { "version": "13545386800-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}\n", - "signature": "2403991005-export function getVar(): {\n key: {\n val: number;\n };\n};\n" + "signature": "2403991005-export function getVar(): {\n key: {\n val: number;\n };\n};\n", + "impliedFormat": 1 }, "version": "13545386800-import { m } from '../sub-project/index';\n\nconst variable = {\n key: m,\n};\n\nexport function getVar() {\n return variable;\n}\n", - "signature": "2403991005-export function getVar(): {\n key: {\n val: number;\n };\n};\n" + "signature": "2403991005-export function getVar(): {\n key: {\n val: number;\n };\n};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -308,7 +326,7 @@ function getVar() { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1516 } //// [/src/common/index.d.ts] @@ -323,7 +341,7 @@ module.exports = x; //// [/src/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./obj.json","./index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"2151907832-{\n \"val\": 42\n}","-5032674136-import x = require(\"./obj.json\");\nexport = x;\n"],"root":[2,3],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"../..","rootDir":"..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./obj.json","./index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},"2151907832-{\n \"val\": 42\n}",{"version":"-5032674136-import x = require(\"./obj.json\");\nexport = x;\n","impliedFormat":1}],"root":[2,3],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"esModuleInterop":true,"outDir":"../..","rootDir":"..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -342,19 +360,26 @@ module.exports = x; "../../lib/lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./obj.json": { "version": "2151907832-{\n \"val\": 42\n}", "signature": "2151907832-{\n \"val\": 42\n}" }, "./index.ts": { + "original": { + "version": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n", + "impliedFormat": 1 + }, "version": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n", - "signature": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n" + "signature": "-5032674136-import x = require(\"./obj.json\");\nexport = x;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -390,6 +415,6 @@ module.exports = x; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1189 + "size": 1237 } 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 new file mode 100644 index 0000000000000..350c589c78650 --- /dev/null +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js @@ -0,0 +1,270 @@ +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":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","impliedFormat":1},{"version":"-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n","impliedFormat":1}],"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": { + "original": { + "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", + "impliedFormat": 1 + }, + "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", + "impliedFormat": "commonjs" + }, + "./nominal.js": { + "original": { + "version": "-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n", + "impliedFormat": 1 + }, + "version": "-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n", + "impliedFormat": "commonjs" + } + }, + "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": 1567 +} + + + +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/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js index 29328022ff2dc..187315d13c078 100644 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js @@ -74,7 +74,7 @@ var x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }","-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n"],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"675797797-export interface HKT { }","impliedFormat":1},{"version":"-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n","impliedFormat":1}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -95,28 +95,42 @@ var x = 10; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/globals.d.ts": { "original": { "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/hkt.ts": { + "original": { + "version": "675797797-export interface HKT { }", + "impliedFormat": 1 + }, "version": "675797797-export interface HKT { }", - "signature": "675797797-export interface HKT { }" + "signature": "675797797-export interface HKT { }", + "impliedFormat": "commonjs" }, "./src/main.ts": { + "original": { + "version": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n", + "impliedFormat": 1 + }, "version": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n", - "signature": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n" + "signature": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -149,7 +163,7 @@ var x = 10; ] }, "version": "FakeTSVersion", - "size": 1171 + "size": 1267 } @@ -191,7 +205,7 @@ var sym = Symbol(); //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"675797797-export interface HKT { }","impliedFormat":1},{"version":"-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -212,32 +226,43 @@ var sym = Symbol(); "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/globals.d.ts": { "original": { "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/hkt.ts": { + "original": { + "version": "675797797-export interface HKT { }", + "impliedFormat": 1 + }, "version": "675797797-export interface HKT { }", - "signature": "675797797-export interface HKT { }" + "signature": "675797797-export interface HKT { }", + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n", - "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" + "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedFormat": 1 }, "version": "-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n", - "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" + "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -270,7 +295,7 @@ var sym = Symbol(); ] }, "version": "FakeTSVersion", - "size": 1356 + "size": 1440 } @@ -313,7 +338,7 @@ var x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"675797797-export interface HKT { }","impliedFormat":1},{"version":"-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -334,32 +359,43 @@ var x = 10; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/globals.d.ts": { "original": { "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/hkt.ts": { + "original": { + "version": "675797797-export interface HKT { }", + "impliedFormat": 1 + }, "version": "675797797-export interface HKT { }", - "signature": "675797797-export interface HKT { }" + "signature": "675797797-export interface HKT { }", + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;", - "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" + "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedFormat": 1 }, "version": "-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;", - "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" + "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -392,6 +428,6 @@ var x = 10; ] }, "version": "FakeTSVersion", - "size": 1368 + "size": 1452 } diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js index a4f050dad3044..a44b584429cd6 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -201,6 +201,21 @@ Output:: [12:00:51 AM] Building project '/home/src/projects/project1/tsconfig.json'... +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -216,6 +231,13 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -231,6 +253,13 @@ File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -246,10 +275,34 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -268,6 +321,13 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts @@ -294,6 +354,16 @@ project1/typeroot1/sometype/index.d.ts [12:01:02 AM] Building project '/home/src/projects/project2/tsconfig.json'... +File '/home/src/projects/project2/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project2/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -302,6 +372,13 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -310,6 +387,13 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-es5/index.d.ts Library 'lib.es5.d.ts' specified in compilerOptions node_modules/@typescript/lib-dom/index.d.ts @@ -322,6 +406,16 @@ project2/utils.d.ts [12:01:09 AM] Building project '/home/src/projects/project3/tsconfig.json'... +File '/home/src/projects/project3/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project3/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -330,6 +424,13 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -338,6 +439,13 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-es5/index.d.ts Library 'lib.es5.d.ts' specified in compilerOptions node_modules/@typescript/lib-dom/index.d.ts @@ -350,6 +458,16 @@ project3/utils.d.ts [12:01:16 AM] Building project '/home/src/projects/project4/tsconfig.json'... +File '/home/src/projects/project4/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project4/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -365,6 +483,13 @@ File '/home/src/projects/node_modules/@typescript/lib-esnext/index.tsx' does not File '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. ======== Module name '@typescript/lib-esnext' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-esnext/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -373,6 +498,13 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -381,6 +513,13 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-webworker' Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-esnext/index.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions node_modules/@typescript/lib-dom/index.d.ts @@ -586,7 +725,7 @@ exports.x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -607,74 +746,103 @@ exports.x = "type1"; "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -712,7 +880,7 @@ exports.x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1763 + "size": 1979 } //// [/home/src/projects/project2/index.d.ts] @@ -727,7 +895,7 @@ exports.y = 10; //// [/home/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -742,32 +910,43 @@ exports.y = 10; "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -793,7 +972,7 @@ exports.y = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1029 + "size": 1113 } //// [/home/src/projects/project3/index.d.ts] @@ -808,7 +987,7 @@ exports.z = 10; //// [/home/src/projects/project3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -823,32 +1002,43 @@ exports.z = 10; "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -874,7 +1064,7 @@ exports.z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1029 + "size": 1113 } //// [/home/src/projects/project4/index.d.ts] @@ -889,7 +1079,7 @@ exports.z = 10; //// [/home/src/projects/project4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-esnext/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-esnext/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -905,41 +1095,54 @@ exports.z = 10; "../node_modules/@typescript/lib-esnext/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -966,6 +1169,6 @@ exports.z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1174 + "size": 1276 } diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js index 58345d4fb37bd..37f19ea03002b 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -162,6 +162,21 @@ Output:: [12:00:41 AM] Building project '/home/src/projects/project1/tsconfig.json'... +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -188,6 +203,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -214,6 +233,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -240,10 +263,31 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -273,6 +317,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -299,6 +347,16 @@ project1/typeroot1/sometype/index.d.ts [12:00:52 AM] Building project '/home/src/projects/project2/tsconfig.json'... +File '/home/src/projects/project2/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project2/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -307,6 +365,10 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -315,6 +377,10 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library 'lib.es5.d.ts' specified in compilerOptions ../lib/lib.dom.d.ts @@ -327,6 +393,16 @@ project2/utils.d.ts [12:00:59 AM] Building project '/home/src/projects/project3/tsconfig.json'... +File '/home/src/projects/project3/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project3/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -335,6 +411,10 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -343,6 +423,10 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library 'lib.es5.d.ts' specified in compilerOptions ../lib/lib.dom.d.ts @@ -355,6 +439,16 @@ project3/utils.d.ts [12:01:06 AM] Building project '/home/src/projects/project4/tsconfig.json'... +File '/home/src/projects/project4/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project4/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -381,6 +475,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-esnext' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -389,6 +487,10 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -397,6 +499,10 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-webworker' Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.esnext.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions ../lib/lib.dom.d.ts @@ -602,7 +708,7 @@ exports.x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -623,74 +729,103 @@ exports.x = "type1"; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -728,7 +863,7 @@ exports.x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1667 + "size": 1883 } //// [/home/src/projects/project2/index.d.ts] @@ -743,7 +878,7 @@ exports.y = 10; //// [/home/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -758,32 +893,43 @@ exports.y = 10; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -809,7 +955,7 @@ exports.y = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 981 + "size": 1065 } //// [/home/src/projects/project3/index.d.ts] @@ -824,7 +970,7 @@ exports.z = 10; //// [/home/src/projects/project3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -839,32 +985,43 @@ exports.z = 10; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -890,7 +1047,7 @@ exports.z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 981 + "size": 1065 } //// [/home/src/projects/project4/index.d.ts] @@ -905,7 +1062,7 @@ exports.z = 10; //// [/home/src/projects/project4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -921,41 +1078,54 @@ exports.z = 10; "../../lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -982,6 +1152,6 @@ exports.z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1102 + "size": 1204 } diff --git a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js index e3a2bc0a87bd4..c8b66cdc3684e 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js @@ -78,6 +78,11 @@ Output:: [12:00:24 AM] Building project '/src/projects/a/tsconfig.json'... +File '/src/projects/a/src/package.json' does not exist. +File '/src/projects/a/package.json' does not exist. +File '/src/projects/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving type reference directive 'pg', containing file '/src/projects/a/__inferred type names__.ts', root directory '/src/projects/a/node_modules/@types,/src/projects/node_modules/@types,/src/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/src/projects/a/node_modules/@types, /src/projects/node_modules/@types, /src/node_modules/@types, /node_modules/@types'. Directory '/src/projects/a/node_modules/@types' does not exist, skipping all lookups in it. @@ -88,6 +93,9 @@ Found 'package.json' at '/src/projects/node_modules/@types/pg/package.json'. File '/src/projects/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/src/projects/node_modules/@types/pg/index.d.ts', result '/src/projects/node_modules/@types/pg/index.d.ts'. ======== Type reference directive 'pg' was successfully resolved to '/src/projects/node_modules/@types/pg/index.d.ts', primary: true. ======== +File '/src/projects/node_modules/@types/pg/package.json' exists according to earlier cached lookups. +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.d.ts Default library for target 'es5' src/projects/a/src/index.ts @@ -125,8 +133,8 @@ File '/src/projects/node_modules/@types/pg/package.json' exists according to ear File '/src/projects/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/src/projects/node_modules/@types/pg/index.d.ts', result '/src/projects/node_modules/@types/pg/index.d.ts'. ======== Type reference directive 'pg' was successfully resolved to '/src/projects/node_modules/@types/pg/index.d.ts', primary: true. ======== -File '/lib/package.json' does not exist. -File '/package.json' does not exist. +File '/lib/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. lib/lib.es2022.full.d.ts Default library for target 'es2022' src/projects/node_modules/@types/pg/index.d.ts diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js index a56a5cfdefb42..87080e2336d76 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js @@ -65,6 +65,8 @@ Output:: [12:00:41 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. ======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/myproject/packages/pkg2', using this value to resolve non-relative module name 'const'. @@ -72,10 +74,20 @@ Resolving module name 'const' relative to base url '/user/username/projects/mypr Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it as a name resolution result. ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:00:58 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist [12:00:59 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +File '/user/username/projects/myproject/packages/pkg1/package.json' does not exist. +File '/user/username/projects/myproject/packages/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -95,6 +107,8 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.ts' does n File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does not exist. File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exists - use it as a name resolution result. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== +File '/user/username/projects/myproject/node_modules/pkg2/build/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/pkg2/package.json' exists according to earlier cached lookups. ======== Resolving module 'const' from '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. @@ -103,6 +117,11 @@ Resolving module name 'const' relative to base url '/user/username/projects/mypr Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it as a name resolution result. ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. //// [/user/username/projects/myproject/packages/pkg2/build/const.js] @@ -124,7 +143,7 @@ export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n"},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n","impliedFormat":1},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -143,27 +162,33 @@ export type { TheNum } from 'const'; "../../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../const.ts": { "original": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-13194036030-export type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n", + "impliedFormat": 1 }, "version": "-11202312776-export type TheNum = 42;", - "signature": "-13194036030-export type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "-10837689162-export type { TheNum } from 'const';", - "signature": "-9751391360-export type { TheNum } from 'const';\n" + "signature": "-9751391360-export type { TheNum } from 'const';\n", + "impliedFormat": 1 }, "version": "-10837689162-export type { TheNum } from 'const';", - "signature": "-9751391360-export type { TheNum } from 'const';\n" + "signature": "-9751391360-export type { TheNum } from 'const';\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -193,7 +218,7 @@ export type { TheNum } from 'const'; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 942 + "size": 996 } //// [/user/username/projects/myproject/packages/pkg1/build/index.js] diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js index 20dc5d1ad9654..fee9941445248 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js @@ -63,6 +63,8 @@ Output:: [12:00:41 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. ======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/myproject/packages/pkg2', using this value to resolve non-relative module name 'const'. @@ -70,10 +72,20 @@ Resolving module name 'const' relative to base url '/user/username/projects/mypr Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it as a name resolution result. ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:00:58 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist [12:00:59 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +File '/user/username/projects/myproject/packages/pkg1/package.json' does not exist. +File '/user/username/projects/myproject/packages/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -94,6 +106,8 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. ======== Resolving module 'const' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. @@ -102,6 +116,11 @@ Resolving module name 'const' relative to base url '/user/username/projects/mypr Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it as a name resolution result. ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. //// [/user/username/projects/myproject/packages/pkg2/build/const.js] @@ -123,7 +142,7 @@ export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n"},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n","impliedFormat":1},{"version":"-10837689162-export type { TheNum } from 'const';","signature":"-9751391360-export type { TheNum } from 'const';\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -142,27 +161,33 @@ export type { TheNum } from 'const'; "../../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../const.ts": { "original": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-13194036030-export type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n", + "impliedFormat": 1 }, "version": "-11202312776-export type TheNum = 42;", - "signature": "-13194036030-export type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "-10837689162-export type { TheNum } from 'const';", - "signature": "-9751391360-export type { TheNum } from 'const';\n" + "signature": "-9751391360-export type { TheNum } from 'const';\n", + "impliedFormat": 1 }, "version": "-10837689162-export type { TheNum } from 'const';", - "signature": "-9751391360-export type { TheNum } from 'const';\n" + "signature": "-9751391360-export type { TheNum } from 'const';\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -192,7 +217,7 @@ export type { TheNum } from 'const'; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 942 + "size": 996 } //// [/user/username/projects/myproject/packages/pkg1/build/index.js] diff --git a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js index 623c41fae86b5..0f589c2192b1e 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js @@ -65,6 +65,9 @@ Output:: [12:00:19 AM] Building project '/src/packages/pkg1.tsconfig.json'... +File '/src/packages/package.json' does not exist. +File '/src/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving type reference directive 'sometype', containing file '/src/packages/__inferred type names__.ts', root directory '/src/packages/typeroot1'. ======== Resolving with primary search path '/src/packages/typeroot1'. File '/src/packages/typeroot1/sometype.d.ts' does not exist. @@ -72,10 +75,20 @@ File '/src/packages/typeroot1/sometype/package.json' does not exist. File '/src/packages/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/src/packages/typeroot1/sometype/index.d.ts', result '/src/packages/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/src/packages/typeroot1/sometype/index.d.ts', primary: true. ======== +File '/src/packages/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/src/packages/typeroot1/package.json' does not exist. +File '/src/packages/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/lib/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. [12:00:25 AM] Project 'src/packages/pkg2.tsconfig.json' is out of date because output file 'src/packages/pkg2.tsconfig.tsbuildinfo' does not exist [12:00:26 AM] Building project '/src/packages/pkg2.tsconfig.json'... +File '/src/packages/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/src/packages/__inferred type names__.ts', root directory '/src/packages/typeroot2'. ======== Resolving with primary search path '/src/packages/typeroot2'. File '/src/packages/typeroot2/sometype.d.ts' does not exist. @@ -83,11 +96,18 @@ File '/src/packages/typeroot2/sometype/package.json' does not exist. File '/src/packages/typeroot2/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/src/packages/typeroot2/sometype/index.d.ts', result '/src/packages/typeroot2/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/src/packages/typeroot2/sometype/index.d.ts', primary: true. ======== +File '/src/packages/typeroot2/sometype/package.json' does not exist according to earlier cached lookups. +File '/src/packages/typeroot2/package.json' does not exist. +File '/src/packages/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/lib/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. exitCode:: ExitStatus.Success //// [/src/packages/pkg1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./pkg1_index.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9601687719-export const theNum: TheNum = \"type1\";","signature":"-11475605505-export declare const theNum: TheNum;\n"},{"version":"-4557394441-declare type TheNum = \"type1\";","affectsGlobalScope":true}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./pkg1_index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./pkg1_index.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9601687719-export const theNum: TheNum = \"type1\";","signature":"-11475605505-export declare const theNum: TheNum;\n","impliedFormat":1},{"version":"-4557394441-declare type TheNum = \"type1\";","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./pkg1_index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,28 +121,34 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./pkg1_index.ts": { "original": { "version": "-9601687719-export const theNum: TheNum = \"type1\";", - "signature": "-11475605505-export declare const theNum: TheNum;\n" + "signature": "-11475605505-export declare const theNum: TheNum;\n", + "impliedFormat": 1 }, "version": "-9601687719-export const theNum: TheNum = \"type1\";", - "signature": "-11475605505-export declare const theNum: TheNum;\n" + "signature": "-11475605505-export declare const theNum: TheNum;\n", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { "original": { "version": "-4557394441-declare type TheNum = \"type1\";", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-4557394441-declare type TheNum = \"type1\";", "signature": "-4557394441-declare type TheNum = \"type1\";", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -143,7 +169,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./pkg1_index.d.ts" }, "version": "FakeTSVersion", - "size": 976 + "size": 1030 } //// [/src/packages/pkg1_index.d.ts] @@ -158,7 +184,7 @@ exports.theNum = "type1"; //// [/src/packages/pkg2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./pkg2_index.ts","./typeroot2/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12823281204-export const theNum: TheNum2 = \"type2\";","signature":"-13622769679-export declare const theNum: TheNum2;\n"},{"version":"-980425686-declare type TheNum2 = \"type2\";","affectsGlobalScope":true}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./pkg2_index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./pkg2_index.ts","./typeroot2/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12823281204-export const theNum: TheNum2 = \"type2\";","signature":"-13622769679-export declare const theNum: TheNum2;\n","impliedFormat":1},{"version":"-980425686-declare type TheNum2 = \"type2\";","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./pkg2_index.d.ts"},"version":"FakeTSVersion"} //// [/src/packages/pkg2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -172,28 +198,34 @@ exports.theNum = "type1"; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./pkg2_index.ts": { "original": { "version": "-12823281204-export const theNum: TheNum2 = \"type2\";", - "signature": "-13622769679-export declare const theNum: TheNum2;\n" + "signature": "-13622769679-export declare const theNum: TheNum2;\n", + "impliedFormat": 1 }, "version": "-12823281204-export const theNum: TheNum2 = \"type2\";", - "signature": "-13622769679-export declare const theNum: TheNum2;\n" + "signature": "-13622769679-export declare const theNum: TheNum2;\n", + "impliedFormat": "commonjs" }, "./typeroot2/sometype/index.d.ts": { "original": { "version": "-980425686-declare type TheNum2 = \"type2\";", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-980425686-declare type TheNum2 = \"type2\";", "signature": "-980425686-declare type TheNum2 = \"type2\";", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -214,7 +246,7 @@ exports.theNum = "type1"; "latestChangedDtsFile": "./pkg2_index.d.ts" }, "version": "FakeTSVersion", - "size": 979 + "size": 1033 } //// [/src/packages/pkg2_index.d.ts] diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js index 2952a162bbbc0..ed82fad16008a 100644 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js @@ -151,7 +151,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/src/lib/solution/common/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../solution/common/nominal.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n"],"root":[2],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../solution/common/nominal.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./nominal.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/solution/common/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -164,15 +164,22 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../../../lib/lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../solution/common/nominal.ts": { + "original": { + "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": 1 + }, "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "signature": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n" + "signature": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -195,7 +202,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./nominal.d.ts" }, "version": "FakeTSVersion", - "size": 1124 + "size": 1172 } //// [/src/lib/solution/sub-project/index.d.ts] @@ -209,7 +216,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/src/lib/solution/sub-project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../../../solution/sub-project/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n",{"version":"-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n","signature":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n"}],"root":[3],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../../../solution/sub-project/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","impliedFormat":1},{"version":"-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n","signature":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/solution/sub-project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -228,23 +235,32 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../../../lib/lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../common/nominal.d.ts": { + "original": { + "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": 1 + }, "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "signature": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n" + "signature": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": "commonjs" }, "../../../solution/sub-project/index.ts": { "original": { "version": "-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": 1 }, "version": "-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -272,7 +288,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1437 + "size": 1503 } //// [/src/lib/solution/sub-project-2/index.d.ts] @@ -297,7 +313,7 @@ function getVar() { //// [/src/lib/solution/sub-project-2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../../solution/sub-project-2/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true},"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n",{"version":"-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n","signature":"-20490736360-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n"}],"root":[4],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../common/nominal.d.ts","../sub-project/index.d.ts","../../../solution/sub-project-2/index.ts"],"fileInfos":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n","impliedFormat":1},{"version":"-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n","impliedFormat":1},{"version":"-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n","signature":"-20490736360-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"../..","rootDir":"../../..","skipLibCheck":true},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/solution/sub-project-2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -320,27 +336,41 @@ function getVar() { "../../../../lib/lib.d.ts": { "original": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../common/nominal.d.ts": { + "original": { + "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": 1 + }, "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "signature": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n" + "signature": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "impliedFormat": "commonjs" }, "../sub-project/index.d.ts": { + "original": { + "version": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": 1 + }, "version": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", - "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n" + "signature": "-25703752603-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal;\n", + "impliedFormat": "commonjs" }, "../../../solution/sub-project-2/index.ts": { "original": { "version": "-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n", - "signature": "-20490736360-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n" + "signature": "-20490736360-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedFormat": 1 }, "version": "-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n", - "signature": "-20490736360-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n" + "signature": "-20490736360-import { MyNominal } from '../sub-project/index';\ndeclare const variable: {\n key: MyNominal;\n};\nexport declare function getVar(): keyof typeof variable;\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -372,6 +402,6 @@ function getVar() { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1749 + "size": 1845 } diff --git a/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js index 1a98d170aef07..42e34149d5157 100644 --- a/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js @@ -68,7 +68,7 @@ Shape signatures in builder refreshed for:: //// [/src/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":"1311033573-const a: number = \"hello\"","affectsGlobalScope":true}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./a.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} +{"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,"impliedFormat":1},{"version":"1311033573-const a: number = \"hello\"","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./a.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'string' is not assignable to type 'number'."}]]],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -81,20 +81,24 @@ Shape signatures in builder refreshed for:: "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "1311033573-const a: number = \"hello\"", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "1311033573-const a: number = \"hello\"", "signature": "1311033573-const a: number = \"hello\"", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -128,7 +132,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 882 + "size": 918 } @@ -214,7 +218,7 @@ Shape signatures in builder refreshed for:: //// [/src/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":"4011451714-const a = \"hello\"","signature":"-5460434953-declare const a = \"hello\";\n","affectsGlobalScope":true}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} +{"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,"impliedFormat":1},{"version":"4011451714-const a = \"hello\"","signature":"-5460434953-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -227,21 +231,25 @@ Shape signatures in builder refreshed for:: "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4011451714-const a = \"hello\"", "signature": "-5460434953-declare const a = \"hello\";\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4011451714-const a = \"hello\"", "signature": "-5460434953-declare const a = \"hello\";\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -263,7 +271,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 797 + "size": 833 } diff --git a/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js index d8dc60f363d0d..41647268cfb01 100644 --- a/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js @@ -64,7 +64,7 @@ No shapes updated in the builder:: //// [/src/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; };","signature":false,"affectsGlobalScope":true},{"version":"2464268576-const a = \"hello","signature":false,"affectsGlobalScope":true}],"root":[2],"referencedMap":[],"changeFileSet":[1,2]},"version":"FakeTSVersion"} +{"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; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"2464268576-const a = \"hello","signature":false,"affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"referencedMap":[],"changeFileSet":[1,2]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -78,19 +78,23 @@ No shapes updated in the builder:: "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2464268576-const a = \"hello", "signature": false, - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2464268576-const a = \"hello", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -106,7 +110,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 730 + "size": 766 } @@ -193,7 +197,7 @@ Shape signatures in builder refreshed for:: //// [/src/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":"4011451714-const a = \"hello\"","signature":"-5460434953-declare const a = \"hello\";\n","affectsGlobalScope":true}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} +{"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,"impliedFormat":1},{"version":"4011451714-const a = \"hello\"","signature":"-5460434953-declare const a = \"hello\";\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -206,21 +210,25 @@ Shape signatures in builder refreshed for:: "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4011451714-const a = \"hello\"", "signature": "-5460434953-declare const a = \"hello\";\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4011451714-const a = \"hello\"", "signature": "-5460434953-declare const a = \"hello\";\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -242,7 +250,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 797 + "size": 833 } diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js index 36022675ebebf..8cee7c9901d21 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js @@ -83,7 +83,7 @@ Shape signatures in builder refreshed for:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,23 +103,40 @@ Shape signatures in builder refreshed for:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedFormat": 1 + }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;" + "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -178,7 +195,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1147 + "size": 1255 } @@ -277,7 +294,7 @@ console.log("hi"); //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -297,27 +314,41 @@ console.log("hi"); "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -350,7 +381,7 @@ console.log("hi"); ] }, "version": "FakeTSVersion", - "size": 1026 + "size": 1122 } diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js index b6200d3561abf..948263c96839c 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js @@ -78,7 +78,7 @@ No shapes updated in the builder:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false,"impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false,"impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false,"impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,31 +99,39 @@ No shapes updated in the builder:: "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { "original": { "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-5014788164-export interface A {\n name: string;\n}\n" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "9084524823-console.log(\"hi\");\nexport { }\n" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -156,7 +164,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1080 + "size": 1152 } @@ -265,7 +273,7 @@ console.log("hi"); //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -285,31 +293,42 @@ console.log("hi"); "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -342,7 +361,7 @@ console.log("hi"); ] }, "version": "FakeTSVersion", - "size": 1086 + "size": 1170 } diff --git a/tests/baselines/reference/tsbuild/outFile/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outFile/baseline-sectioned-sourcemaps.js index c73edeeab60df..137e1a25afa71 100644 --- a/tests/baselines/reference/tsbuild/outFile/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outFile/baseline-sectioned-sourcemaps.js @@ -572,7 +572,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -583,9 +583,30 @@ sourceFile:../second/second_part2.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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -612,7 +633,7 @@ sourceFile:../second/second_part2.ts "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -916,7 +937,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -928,10 +949,38 @@ sourceFile:../first_part3.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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -960,7 +1009,7 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1074,7 +1123,7 @@ sourceFile:../../third_part1.ts >>>//# 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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -1086,10 +1135,38 @@ sourceFile:../../third_part1.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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1112,7 +1189,7 @@ sourceFile:../../third_part1.ts "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1265 + "size": 1385 } @@ -1485,7 +1562,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -1497,10 +1574,38 @@ sourceFile:../first_part3.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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1529,7 +1634,7 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1270 + "size": 1390 } //// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents @@ -1538,7 +1643,7 @@ sourceFile:../first_part3.ts //// [/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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -1550,10 +1655,38 @@ sourceFile:../first_part3.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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1576,7 +1709,7 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1264 + "size": 1384 } @@ -1824,7 +1957,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -1836,10 +1969,38 @@ sourceFile:../first_part3.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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1868,7 +2029,7 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1285 + "size": 1405 } //// [/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 e23cb13bf1d94..2b22c60a3654c 100644 --- a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js @@ -169,7 +169,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -180,9 +180,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -209,6 +230,6 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } diff --git a/tests/baselines/reference/tsbuild/outFile/clean-projects.js b/tests/baselines/reference/tsbuild/outFile/clean-projects.js index 37b14ba24cac8..4c3515cccb89c 100644 --- a/tests/baselines/reference/tsbuild/outFile/clean-projects.js +++ b/tests/baselines/reference/tsbuild/outFile/clean-projects.js @@ -50,7 +50,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -61,9 +61,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -90,7 +111,7 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -120,7 +141,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -132,10 +153,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -164,7 +213,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/first/first_PART1.ts] @@ -265,7 +314,7 @@ c.doSomething(); {"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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -277,10 +326,38 @@ c.doSomething(); "../../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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -303,7 +380,7 @@ c.doSomething(); "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1265 + "size": 1385 } //// [/src/third/third_part1.ts] 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 17de0e161b806..43363ac987f3d 100644 --- a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -60,9 +60,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -89,7 +110,7 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -119,7 +140,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -131,10 +152,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -163,7 +212,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/first/first_PART1.ts] @@ -264,7 +313,7 @@ c.doSomething(); {"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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -276,10 +325,38 @@ c.doSomething(); "../../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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -302,7 +379,7 @@ c.doSomething(); "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1265 + "size": 1385 } //// [/src/third/third_part1.ts] 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 126d05075904b..e2bcaffd9717b 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 @@ -203,7 +203,7 @@ function f() { {"version":3,"file":"first_part3.js","sourceRoot":"","sources":["first_part3.ts"],"names":[],"mappings":"AAAA,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},{"version":"6007494133-console.log(f());\n","signature":"5381-","affectsGlobalScope":true},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"6007494133-console.log(f());\n","signature":"5381-","affectsGlobalScope":true,"impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts"},"version":"FakeTSVersion"} //// [/src/first/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -218,41 +218,49 @@ function f() { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./first_part1.ts": { "original": { "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "signature": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "signature": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./first_part2.ts": { "original": { "version": "6007494133-console.log(f());\n", "signature": "5381-", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "6007494133-console.log(f());\n", "signature": "5381-", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./first_part3.ts": { "original": { "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", "signature": "-6420944280-declare function f(): string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", "signature": "-6420944280-declare function f(): string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -287,7 +295,7 @@ function f() { "latestChangedDtsFile": "./first_part3.d.ts" }, "version": "FakeTSVersion", - "size": 1481 + "size": 1553 } //// [/src/second/second_part1.d.ts] @@ -337,7 +345,7 @@ var C = (function () { {"version":3,"file":"second_part2.js","sourceRoot":"","sources":["second_part2.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/second/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts"},"version":"FakeTSVersion"} //// [/src/second/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -351,31 +359,37 @@ var C = (function () { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./second_part1.ts": { "original": { "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", "signature": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", "signature": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./second_part2.ts": { "original": { "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", "signature": "-4226833059-declare class C {\n doSomething(): void;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", "signature": "-4226833059-declare class C {\n doSomething(): void;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -407,7 +421,7 @@ var C = (function () { "latestChangedDtsFile": "./second_part2.d.ts" }, "version": "FakeTSVersion", - "size": 1355 + "size": 1409 } //// [/src/third/third_part1.d.ts] @@ -426,7 +440,7 @@ c.doSomething(); {"version":3,"file":"third_part1.js","sourceRoot":"","sources":["third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true},{"version":"7305100057-var c = new C();\nc.doSomething();\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2054710634-//# sourceMappingURL=first_part2.d.ts.map","impliedFormat":1},{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts"},"version":"FakeTSVersion"} //// [/src/third/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -444,61 +458,78 @@ c.doSomething(); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../first/first_part1.d.ts": { "original": { "version": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", "signature": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../first/first_part2.d.ts": { + "original": { + "version": "-2054710634-//# sourceMappingURL=first_part2.d.ts.map", + "impliedFormat": 1 + }, "version": "-2054710634-//# sourceMappingURL=first_part2.d.ts.map", - "signature": "-2054710634-//# sourceMappingURL=first_part2.d.ts.map" + "signature": "-2054710634-//# sourceMappingURL=first_part2.d.ts.map", + "impliedFormat": "commonjs" }, "../first/first_part3.d.ts": { "original": { "version": "-6420944280-declare function f(): string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-6420944280-declare function f(): string;\n", "signature": "-6420944280-declare function f(): string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../second/second_part1.d.ts": { "original": { "version": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", "signature": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../second/second_part2.d.ts": { "original": { "version": "-4226833059-declare class C {\n doSomething(): void;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-4226833059-declare class C {\n doSomething(): void;\n}\n", "signature": "-4226833059-declare class C {\n doSomething(): void;\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./third_part1.ts": { "original": { "version": "7305100057-var c = new C();\nc.doSomething();\n", "signature": "1894672131-declare var c: C;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "7305100057-var c = new C();\nc.doSomething();\n", "signature": "1894672131-declare var c: C;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -530,6 +561,6 @@ c.doSomething(); "latestChangedDtsFile": "./third_part1.d.ts" }, "version": "FakeTSVersion", - "size": 1665 + "size": 1803 } 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 36234a5e967ea..a2aec2714e27b 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 @@ -187,7 +187,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -198,9 +198,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -227,7 +248,7 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -257,7 +278,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -269,10 +290,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -301,7 +350,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -320,7 +369,7 @@ c.doSomething(); {"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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -332,10 +381,38 @@ c.doSomething(); "../../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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -355,7 +432,7 @@ c.doSomething(); } }, "version": "FakeTSVersion", - "size": 1155 + "size": 1275 } @@ -413,7 +490,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -425,10 +502,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -457,7 +562,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1287 + "size": 1407 } @@ -516,7 +621,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -528,10 +633,38 @@ function f() { "../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": "-22658061710-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);console.log(s);", - "../first_part2.ts": "6007494133-console.log(f());\n", - "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -560,7 +693,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1302 + "size": 1422 } //// [/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 05ad3c130c315..d89d424f12347 100644 --- a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -60,9 +60,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -89,7 +110,7 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -119,7 +140,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -131,10 +152,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -163,7 +212,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/first/first_PART1.ts] @@ -264,7 +313,7 @@ c.doSomething(); {"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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -276,10 +325,38 @@ c.doSomething(); "../../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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -302,7 +379,7 @@ c.doSomething(); "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1265 + "size": 1385 } //// [/src/third/third_part1.ts] @@ -365,7 +442,7 @@ exitCode:: ExitStatus.Success //// [/src/2/second-output.js] file written with same contents //// [/src/2/second-output.js.map] file written with same contents //// [/src/2/second-output.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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.readable.baseline.txt] { @@ -376,9 +453,30 @@ exitCode:: ExitStatus.Success "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -405,7 +503,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1223 + "size": 1313 } //// [/src/first/bin/first-output.d.ts] file written with same contents @@ -413,7 +511,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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.readable.baseline.txt] { @@ -425,10 +523,38 @@ exitCode:: ExitStatus.Success "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -457,7 +583,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1279 + "size": 1399 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -465,7 +591,7 @@ exitCode:: ExitStatus.Success //// [/src/third/thirdjs/output/third-output.js] file written with same contents //// [/src/third/thirdjs/output/third-output.js.map] file written with same contents //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -477,10 +603,38 @@ exitCode:: ExitStatus.Success "../../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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -503,6 +657,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1272 + "size": 1392 } 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 d503f5665be21..1e6a71f9a3e18 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 @@ -187,7 +187,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -198,9 +198,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -227,7 +248,7 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -257,7 +278,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -269,10 +290,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -301,7 +350,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js index de13deb4e963a..1867427dddd1b 100644 --- a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js +++ b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js @@ -50,7 +50,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -61,9 +61,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -90,7 +111,7 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -129,10 +150,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -161,7 +210,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/first/first_PART1.ts] @@ -262,7 +311,7 @@ c.doSomething(); {"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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -274,10 +323,38 @@ c.doSomething(); "../../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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -300,7 +377,7 @@ c.doSomething(); "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1265 + "size": 1385 } //// [/src/third/third_part1.ts] @@ -363,7 +440,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] 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/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outFile/when-final-project-is-not-composite-but-incremental.js index d1c0e0efa5e8f..53099bc8e868c 100644 --- a/tests/baselines/reference/tsbuild/outFile/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outFile/when-final-project-is-not-composite-but-incremental.js @@ -538,7 +538,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -549,9 +549,30 @@ sourceFile:../second/second_part2.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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -578,7 +599,7 @@ sourceFile:../second/second_part2.ts "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -882,7 +903,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -894,10 +915,38 @@ sourceFile:../first_part3.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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -926,7 +975,7 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1040,7 +1089,7 @@ sourceFile:../../third_part1.ts >>>//# 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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -1052,10 +1101,38 @@ sourceFile:../../third_part1.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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1075,6 +1152,6 @@ sourceFile:../../third_part1.ts } }, "version": "FakeTSVersion", - "size": 1155 + "size": 1275 } diff --git a/tests/baselines/reference/tsbuild/outFile/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 index 01e26e7db1fd8..1e08b857be728 100644 --- a/tests/baselines/reference/tsbuild/outFile/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 @@ -538,7 +538,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -549,9 +549,30 @@ sourceFile:../second/second_part2.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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -578,7 +599,7 @@ sourceFile:../second/second_part2.ts "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -882,7 +903,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -894,10 +915,38 @@ sourceFile:../first_part3.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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -926,7 +975,7 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1266,7 +1315,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -1278,10 +1327,38 @@ sourceFile:../first_part3.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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1310,6 +1387,6 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1287 + "size": 1407 } diff --git a/tests/baselines/reference/tsbuild/outFile/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outFile/when-final-project-specifies-tsBuildInfoFile.js index 4a7842b695de1..542b46776a47e 100644 --- a/tests/baselines/reference/tsbuild/outFile/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outFile/when-final-project-specifies-tsBuildInfoFile.js @@ -539,7 +539,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -550,9 +550,30 @@ sourceFile:../second/second_part2.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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -579,7 +600,7 @@ sourceFile:../second/second_part2.ts "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -883,7 +904,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -895,10 +916,38 @@ sourceFile:../first_part3.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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -927,7 +976,7 @@ sourceFile:../first_part3.ts "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1041,7 +1090,7 @@ sourceFile:../../third_part1.ts >>>//# 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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -1053,10 +1102,38 @@ sourceFile:../../third_part1.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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1080,6 +1157,6 @@ sourceFile:../../third_part1.ts "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1425 } 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 36e58a0608de9..638e6e03683b8 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 @@ -187,7 +187,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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] { @@ -198,9 +198,30 @@ var C = (function () { "../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" + "../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -227,7 +248,7 @@ var C = (function () { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 1216 + "size": 1306 } //// [/src/first/bin/first-output.d.ts] @@ -257,7 +278,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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] { @@ -269,10 +290,38 @@ function f() { "../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" + "../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -301,7 +350,7 @@ function f() { "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 1272 + "size": 1392 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -320,7 +369,7 @@ c.doSomething(); {"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"} +{"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","impliedFormat":1},{"version":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","impliedFormat":1},{"version":"7305100057-var c = new C();\nc.doSomething();\n","impliedFormat":1}],"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] { @@ -332,10 +381,38 @@ c.doSomething(); "../../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" + "../../../../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../../../first/bin/first-output.d.ts": { + "original": { + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": 1 + }, + "version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", + "impliedFormat": "commonjs" + }, + "../../../2/second-output.d.ts": { + "original": { + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": 1 + }, + "version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", + "impliedFormat": "commonjs" + }, + "../../third_part1.ts": { + "original": { + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": 1 + }, + "version": "7305100057-var c = new C();\nc.doSomething();\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -358,7 +435,7 @@ c.doSomething(); "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 1265 + "size": 1385 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js new file mode 100644 index 0000000000000..d0ec3689bf2b3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js @@ -0,0 +1,2053 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2794 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2729 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2725 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2797 +} + 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 new file mode 100644 index 0000000000000..c4f34a5ff5d57 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js @@ -0,0 +1,1130 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2794 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2729 +} + 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 new file mode 100644 index 0000000000000..d4d07f07d3280 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js @@ -0,0 +1,3304 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-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}", + "impliedFormat": 1 + }, + "version": "-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}", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3920 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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}", + "impliedFormat": 1 + }, + "version": "-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}", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3846 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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}", + "impliedFormat": 1 + }, + "version": "-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}", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3843 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3915 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3030 +} + 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 new file mode 100644 index 0000000000000..59410163d99fa --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js @@ -0,0 +1,2444 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-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}", + "impliedFormat": 1 + }, + "version": "-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}", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3920 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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() { }","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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() { }", + "impliedFormat": 1 + }, + "version": "-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() { }", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2961 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3033 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3919 +} + 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 new file mode 100644 index 0000000000000..7f53423ac10cc --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,3677 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-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}", + "impliedFormat": 1 + }, + "version": "-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}", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + } + }, + "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": 5991 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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}", + "impliedFormat": 1 + }, + "version": "-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}", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + } + }, + "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": 5888 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + } + }, + "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": 5962 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + } + }, + "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": 5097 +} + 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 new file mode 100644 index 0000000000000..10d98f2cbe060 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js @@ -0,0 +1,2699 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 4889 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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}", + "impliedFormat": 1 + }, + "version": "-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}", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3846 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3919 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3033 +} + 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 new file mode 100644 index 0000000000000..d1737ed2eb2c5 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js @@ -0,0 +1,2983 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3430 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3130 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3124 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3197 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3395 +} + 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 new file mode 100644 index 0000000000000..6995a042014eb --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js @@ -0,0 +1,2250 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3281 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2939 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3012 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3206 +} + 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 new file mode 100644 index 0000000000000..6177ad50d457b --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js @@ -0,0 +1,2083 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2937 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "impliedFormat": 1 + }, + "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2896 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "impliedFormat": 1 + }, + "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2891 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "impliedFormat": 1 + }, + "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2962 +} + 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 new file mode 100644 index 0000000000000..965500bd64fdc --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js @@ -0,0 +1,1525 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2937 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2729 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2802 +} + 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 new file mode 100644 index 0000000000000..ff6793b7904ee --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js @@ -0,0 +1,2766 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3006 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2939 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2935 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3007 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3197 +} + 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 new file mode 100644 index 0000000000000..2039826bcb4d4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js @@ -0,0 +1,2109 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3006 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2729 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2802 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3054 +} + 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 new file mode 100644 index 0000000000000..62141219cf0be --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -0,0 +1,1507 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2794 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 4974 +} + 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 new file mode 100644 index 0000000000000..716cb1bee77ee --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,1500 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2782 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2853 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2802 +} + 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 new file mode 100644 index 0000000000000..802690310fe23 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js @@ -0,0 +1,4151 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "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 }", + "impliedFormat": 1 + }, + "version": "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 }", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 11322 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2782 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2853 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2802 +} + 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 new file mode 100644 index 0000000000000..68de4d5510ace --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,1015 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2821 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2892 +} + 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 new file mode 100644 index 0000000000000..c7fa38cef82f8 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -0,0 +1,3884 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "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 }", + "impliedFormat": 1 + }, + "version": "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 }", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 12729 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2821 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2892 +} + 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 new file mode 100644 index 0000000000000..204ad66df3609 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js @@ -0,0 +1,1697 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2794 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 5903 +} + 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 new file mode 100644 index 0000000000000..1803eae6c4df1 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,2034 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2780 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2778 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2850 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2797 +} + 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 new file mode 100644 index 0000000000000..5eb3b8823f847 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js @@ -0,0 +1,322 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"2890484261-/* @internal */ const A = 1;","impliedFormat":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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "2890484261-/* @internal */ const A = 1;", + "impliedFormat": 1 + }, + "version": "2890484261-/* @internal */ const A = 1;", + "impliedFormat": "commonjs" + } + }, + "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": 1650 +} + 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 new file mode 100644 index 0000000000000..fb568b266e840 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,1500 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2781 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2854 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2803 +} + 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 new file mode 100644 index 0000000000000..0a21c3507b1ab --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js @@ -0,0 +1,4254 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "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 }", + "impliedFormat": 1 + }, + "version": "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 }", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 11847 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2781 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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);", + "impliedFormat": 1 + }, + "version": "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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2854 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2803 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js new file mode 100644 index 0000000000000..edfa36965c934 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js @@ -0,0 +1,4705 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "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 }", + "impliedFormat": 1 + }, + "version": "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 }", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 11302 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "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", + "impliedFormat": 1 + }, + "version": "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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2780 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2778 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2850 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2797 +} + 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 new file mode 100644 index 0000000000000..3d8c4ee58c5e8 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js @@ -0,0 +1,2360 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-742713438-declare class secondsecond_part1 { }","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/tripleref.d.ts": { + "original": { + "version": "-742713438-declare class secondsecond_part1 { }", + "impliedFormat": 1 + }, + "version": "-742713438-declare class secondsecond_part1 { }", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3420 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"-2651673797-declare class firstfirst_part2 { }","impliedFormat":1},{"version":"2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../tripleref.d.ts": { + "original": { + "version": "-2651673797-declare class firstfirst_part2 { }", + "impliedFormat": 1 + }, + "version": "-2651673797-declare class firstfirst_part2 { }", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "impliedFormat": 1 + }, + "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3310 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"-2651673797-declare class firstfirst_part2 { }","impliedFormat":1},{"version":"2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../tripleref.d.ts": { + "original": { + "version": "-2651673797-declare class firstfirst_part2 { }", + "impliedFormat": 1 + }, + "version": "-2651673797-declare class firstfirst_part2 { }", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "impliedFormat": 1 + }, + "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3304 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"-2651673797-declare class firstfirst_part2 { }","impliedFormat":1},{"version":"2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../tripleref.d.ts": { + "original": { + "version": "-2651673797-declare class firstfirst_part2 { }", + "impliedFormat": 1 + }, + "version": "-2651673797-declare class firstfirst_part2 { }", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "impliedFormat": 1 + }, + "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3375 +} + 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 new file mode 100644 index 0000000000000..7aadaf4e009f1 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js @@ -0,0 +1,1600 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-742713438-declare class secondsecond_part1 { }","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/tripleref.d.ts": { + "original": { + "version": "-742713438-declare class secondsecond_part1 { }", + "impliedFormat": 1 + }, + "version": "-742713438-declare class secondsecond_part1 { }", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-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", + "impliedFormat": 1 + }, + "version": "-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", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 3420 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2729 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2802 +} + 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 new file mode 100644 index 0000000000000..93341e4b9c1e7 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js @@ -0,0 +1,1516 @@ +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../second/second_part1.ts": { + "original": { + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": 1 + }, + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "impliedFormat": "commonjs" + }, + "../second/second_part2.ts": { + "original": { + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": 1 + }, + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2794 +} + +//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": 1 + }, + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2729 +} + + + +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { + "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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "../first_part1.ts": { + "original": { + "version": "-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);", + "impliedFormat": 1 + }, + "version": "-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);", + "impliedFormat": "commonjs" + }, + "../first_part2.ts": { + "original": { + "version": "6007494133-console.log(f());\n", + "impliedFormat": 1 + }, + "version": "6007494133-console.log(f());\n", + "impliedFormat": "commonjs" + }, + "../first_part3.ts": { + "original": { + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": 1 + }, + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", + "impliedFormat": "commonjs" + } + }, + "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": 2802 +} + diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js index 47f77bb0ebb71..9fbc950430ed6 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js @@ -52,7 +52,7 @@ exports.x = 10; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -65,19 +65,23 @@ exports.x = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/index.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -98,7 +102,7 @@ exports.x = 10; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 840 + "size": 876 } diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js index b8581da7adb6a..5f3d305c97351 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js @@ -52,7 +52,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":false},{"version":"-4885977236-export type t = string;","signature":false}],"root":[2,3],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":false,"impliedFormat":1},{"version":"-4885977236-export type t = string;","signature":false,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -67,24 +67,30 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-10726455937-export const x = 10;" + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./types/type.ts": { "original": { "version": "-4885977236-export type t = string;", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-4885977236-export type t = string;" + "version": "-4885977236-export type t = string;", + "impliedFormat": "commonjs" } }, "root": [ @@ -110,7 +116,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 872 + "size": 926 } @@ -168,7 +174,7 @@ exports.x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-4885977236-export type t = string;","signature":"-6618426122-export type t = string;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"latestChangedDtsFile":"./types/type.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/index.ts","./types/type.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-4885977236-export type t = string;","signature":"-6618426122-export type t = string;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"latestChangedDtsFile":"./types/type.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,27 +188,33 @@ exports.x = 10; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./types/type.ts": { "original": { "version": "-4885977236-export type t = string;", - "signature": "-6618426122-export type t = string;\n" + "signature": "-6618426122-export type t = string;\n", + "impliedFormat": 1 }, "version": "-4885977236-export type t = string;", - "signature": "-6618426122-export type t = string;\n" + "signature": "-6618426122-export type t = string;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +236,7 @@ exports.x = 10; "latestChangedDtsFile": "./types/type.d.ts" }, "version": "FakeTSVersion", - "size": 946 + "size": 1000 } //// [/src/types/type.d.ts] diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js index 88858c9cde72b..5894c946478e9 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js @@ -87,7 +87,7 @@ exports.b = 0; //// [/src/dist/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n","impliedFormat":1},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,27 +106,33 @@ exports.b = 0; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/main/b.ts": { "original": { "version": "-13368948254-export const b = 0;\n", - "signature": "-5842658702-export declare const b = 0;\n" + "signature": "-5842658702-export declare const b = 0;\n", + "impliedFormat": 1 }, "version": "-13368948254-export const b = 0;\n", - "signature": "-5842658702-export declare const b = 0;\n" + "signature": "-5842658702-export declare const b = 0;\n", + "impliedFormat": "commonjs" }, "../../src/main/a.ts": { "original": { "version": "-18592354388-import { b } from './b';\nconst a = b;\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-18592354388-import { b } from './b';\nconst a = b;\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -159,7 +165,7 @@ exports.b = 0; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1065 + "size": 1119 } //// [/src/dist/other/other.d.ts] @@ -174,7 +180,7 @@ exports.Other = 0; //// [/src/dist/other/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/other/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,19 +193,23 @@ exports.Other = 0; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/other/other.ts": { "original": { "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": 1 }, "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,6 +233,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 924 + "size": 960 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js index b0b451c0a79fb..c54b697725cec 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js @@ -100,7 +100,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -113,19 +113,23 @@ exports.Other = 0; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/other/other.ts": { "original": { "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": 1 }, "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -148,6 +152,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 896 + "size": 932 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js index d98a5042dd1fa..237677d7499a9 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js @@ -106,7 +106,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -119,19 +119,23 @@ exports.Other = 0; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/other/other.ts": { "original": { "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": 1 }, "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -152,6 +156,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 850 + "size": 886 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js index cf3eb521f2f82..abbcacc7733ae 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js @@ -116,7 +116,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.main.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n","impliedFormat":1},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.main.tsbuildinfo.readable.baseline.txt] { @@ -135,27 +135,33 @@ exports.Other = 0; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/main/b.ts": { "original": { "version": "-13368948254-export const b = 0;\n", - "signature": "-5842658702-export declare const b = 0;\n" + "signature": "-5842658702-export declare const b = 0;\n", + "impliedFormat": 1 }, "version": "-13368948254-export const b = 0;\n", - "signature": "-5842658702-export declare const b = 0;\n" + "signature": "-5842658702-export declare const b = 0;\n", + "impliedFormat": "commonjs" }, "../src/main/a.ts": { "original": { "version": "-18592354388-import { b } from './b';\nconst a = b;\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-18592354388-import { b } from './b';\nconst a = b;\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -185,11 +191,11 @@ exports.Other = 0; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 988 + "size": 1042 } //// [/src/dist/tsconfig.other.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.other.tsbuildinfo.readable.baseline.txt] { @@ -202,19 +208,23 @@ exports.Other = 0; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/other/other.ts": { "original": { "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": 1 }, "version": "-4254247902-export const Other = 0;\n", - "signature": "-10003600206-export declare const Other = 0;\n" + "signature": "-10003600206-export declare const Other = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -235,6 +245,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 850 + "size": 886 } diff --git a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js index 4f2c972b79140..131fd08e34009 100644 --- a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js +++ b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js @@ -153,7 +153,7 @@ function f2() { } // trailing //// [/src/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing"],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-9393727241-export declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-9393727241-export declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -166,15 +166,22 @@ function f2() { } // trailing "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", + "impliedFormat": 1 + }, "version": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", - "signature": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing" + "signature": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", + "impliedFormat": "commonjs" } }, "root": [ @@ -200,7 +207,7 @@ function f2() { } // trailing "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1008 + "size": 1056 } //// [/src/webpack/index.d.ts] @@ -237,7 +244,7 @@ function f22() { } // trailing //// [/src/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing"],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-2037002130-export declare function f2(): void;\nexport declare class c2 {\n}\nexport declare enum e2 {\n}\nexport declare function f22(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-2037002130-export declare function f2(): void;\nexport declare class c2 {\n}\nexport declare enum e2 {\n}\nexport declare function f22(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -250,15 +257,22 @@ function f22() { } // trailing "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing", + "impliedFormat": 1 + }, "version": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing", - "signature": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing" + "signature": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing", + "impliedFormat": "commonjs" } }, "root": [ @@ -284,6 +298,6 @@ function f22() { } // trailing "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1015 + "size": 1063 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js index d783d0644f04f..d6cbd1296ac72 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js @@ -90,7 +90,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -109,11 +109,13 @@ exports.default = hello_json_1.default.hello; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -122,10 +124,12 @@ exports.default = hello_json_1.default.hello; "../src/index.ts": { "original": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -159,6 +163,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1099 + "size": 1135 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js index 0f0bfbadea692..1ee03b11fd1b3 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js @@ -111,7 +111,7 @@ console.log(foo_json_1.foo); //// [/src/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-6280880055-{\n \"foo\": \"bar baz\"\n}",{"version":"-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"-6280880055-{\n \"foo\": \"bar baz\"\n}",{"version":"-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -130,11 +130,13 @@ console.log(foo_json_1.foo); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../strings/foo.json": { "version": "-6280880055-{\n \"foo\": \"bar baz\"\n}", @@ -143,10 +145,12 @@ console.log(foo_json_1.foo); "./index.ts": { "original": { "version": "-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -176,11 +180,11 @@ console.log(foo_json_1.foo); "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1007 + "size": 1043 } //// [/src/strings/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./foo.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-6280880055-{\n \"foo\": \"bar baz\"\n}"],"root":[2],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./foo.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"-6280880055-{\n \"foo\": \"bar baz\"\n}"],"root":[2],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/strings/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -193,11 +197,13 @@ console.log(foo_json_1.foo); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./foo.json": { "version": "-6280880055-{\n \"foo\": \"bar baz\"\n}", @@ -225,7 +231,7 @@ console.log(foo_json_1.foo); ] }, "version": "FakeTSVersion", - "size": 791 + "size": 809 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js index d9793927908e7..db90ec2a7a5d0 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js @@ -92,7 +92,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -111,11 +111,13 @@ exports.default = hello_json_1.default.hello; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -124,10 +126,12 @@ exports.default = hello_json_1.default.hello; "../src/index.ts": { "original": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -161,6 +165,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1099 + "size": 1135 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js index 5751449846251..fe7bd81531129 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js @@ -90,7 +90,7 @@ exports.default = index_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -109,11 +109,13 @@ exports.default = index_json_1.default.hello; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/index.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -122,10 +124,12 @@ exports.default = index_json_1.default.hello; "../src/index.ts": { "original": { "version": "-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -159,6 +163,6 @@ exports.default = index_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1100 + "size": 1136 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js index bf4de23f4c471..f226aa6096c48 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js @@ -90,7 +90,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -109,11 +109,13 @@ exports.default = hello_json_1.default.hello; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -122,10 +124,12 @@ exports.default = hello_json_1.default.hello; "../src/index.ts": { "original": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -159,6 +163,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1099 + "size": 1135 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js index 334b111476564..18b440eafe1a2 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js @@ -82,7 +82,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./dist/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./dist/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,11 +101,13 @@ exports.default = hello_json_1.default.hello; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -114,10 +116,12 @@ exports.default = hello_json_1.default.hello; "./src/index.ts": { "original": { "version": "-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -148,6 +152,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./dist/index.d.ts" }, "version": "FakeTSVersion", - "size": 1113 + "size": 1149 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js index 2600f9a6e7c7a..525e65c524148 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js @@ -81,7 +81,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[2,1,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[2,1,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -100,11 +100,13 @@ exports.default = hello_json_1.default.hello; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -113,10 +115,12 @@ exports.default = hello_json_1.default.hello; "../src/index.ts": { "original": { "version": "-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -146,6 +150,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1101 + "size": 1137 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js index 485eec8a8c5d5..0fdc8392a6ff1 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js @@ -80,7 +80,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,11 +99,13 @@ exports.default = hello_json_1.default.hello; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -112,10 +114,12 @@ exports.default = hello_json_1.default.hello; "./src/index.ts": { "original": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -144,6 +148,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1078 + "size": 1114 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js index a640711461146..313cf20a625a5 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js @@ -72,7 +72,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}","-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n"],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","impliedFormat":1}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[3]},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,19 +91,26 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { + "original": { + "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", + "impliedFormat": 1 + }, "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n" + "signature": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -145,6 +152,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 1012 + "size": 1060 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js index c6b9461300ce1..7e8b3ea402313 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js @@ -95,7 +95,7 @@ exports.default = hello_json_1.default.hello; {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAgC;AAChC,kBAAe,oBAAK,CAAC,KAAK,CAAA"} //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -114,11 +114,13 @@ exports.default = hello_json_1.default.hello; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -127,10 +129,12 @@ exports.default = hello_json_1.default.hello; "../src/index.ts": { "original": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -165,7 +169,7 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1116 + "size": 1152 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js index 7e62b40a1c3c6..de5c0ef0e4522 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js @@ -82,7 +82,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n","impliedFormat":1}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,11 +101,13 @@ exports.default = hello_json_1.default.hello; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/hello.json": { "version": "6651571919-{\n \"hello\": \"world\"\n}", @@ -114,10 +116,12 @@ exports.default = hello_json_1.default.hello; "./src/index.ts": { "original": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", - "signature": "6785192742-declare const _default: string;\nexport default _default;\n" + "signature": "6785192742-declare const _default: string;\nexport default _default;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -150,7 +154,7 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1080 + "size": 1116 } diff --git a/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js b/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js index 57058e144ade9..7dca98e099638 100644 --- a/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js +++ b/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js @@ -156,7 +156,7 @@ exports.nonConsecutive = "hello"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./file2.ts","./random.d.ts","./nonconsecutive.ts","./random1.d.ts","./asarray1.ts","./asarray2.ts","./asarray3.ts","./random2.d.ts","./anothernonconsecutive.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"},"-10812219521-export const random = \"hello\";",{"version":"-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n"},"-10812219521-export const random = \"hello\";",{"version":"-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n","signature":"-6425002032-export declare const x = \"hello\";\n"},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},"-10812219521-export const random = \"hello\";",{"version":"-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n"}],"root":[2,3,5,[7,9],11],"options":{"composite":true},"fileIdsList":[[10],[6],[4]],"referencedMap":[[11,1],[7,2],[5,3]],"semanticDiagnosticsPerFile":[1,11,7,8,9,2,3,5,4,6,10],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./file2.ts","./random.d.ts","./nonconsecutive.ts","./random1.d.ts","./asarray1.ts","./asarray2.ts","./asarray3.ts","./random2.d.ts","./anothernonconsecutive.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1},{"version":"-10812219521-export const random = \"hello\";","impliedFormat":1},{"version":"-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n","impliedFormat":1},{"version":"-10812219521-export const random = \"hello\";","impliedFormat":1},{"version":"-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-10812219521-export const random = \"hello\";","impliedFormat":1},{"version":"-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n","impliedFormat":1}],"root":[2,3,5,[7,9],11],"options":{"composite":true},"fileIdsList":[[10],[6],[4]],"referencedMap":[[11,1],[7,2],[5,3]],"semanticDiagnosticsPerFile":[1,11,7,8,9,2,3,5,4,6,10],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -189,79 +189,110 @@ exports.nonConsecutive = "hello"; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" }, "./random.d.ts": { + "original": { + "version": "-10812219521-export const random = \"hello\";", + "impliedFormat": 1 + }, "version": "-10812219521-export const random = \"hello\";", - "signature": "-10812219521-export const random = \"hello\";" + "signature": "-10812219521-export const random = \"hello\";", + "impliedFormat": "commonjs" }, "./nonconsecutive.ts": { "original": { "version": "-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": 1 }, "version": "-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": "commonjs" }, "./random1.d.ts": { + "original": { + "version": "-10812219521-export const random = \"hello\";", + "impliedFormat": 1 + }, "version": "-10812219521-export const random = \"hello\";", - "signature": "-10812219521-export const random = \"hello\";" + "signature": "-10812219521-export const random = \"hello\";", + "impliedFormat": "commonjs" }, "./asarray1.ts": { "original": { "version": "-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./asarray2.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./asarray3.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./random2.d.ts": { + "original": { + "version": "-10812219521-export const random = \"hello\";", + "impliedFormat": 1 + }, "version": "-10812219521-export const random = \"hello\";", - "signature": "-10812219521-export const random = \"hello\";" + "signature": "-10812219521-export const random = \"hello\";", + "impliedFormat": "commonjs" }, "./anothernonconsecutive.ts": { "original": { "version": "-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": 1 }, "version": "-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -323,7 +354,7 @@ exports.nonConsecutive = "hello"; "latestChangedDtsFile": "./anotherNonConsecutive.d.ts" }, "version": "FakeTSVersion", - "size": 2117 + "size": 2351 } @@ -348,7 +379,7 @@ exitCode:: ExitStatus.Success //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./file2.ts","./random.d.ts","./nonconsecutive.ts","./random1.d.ts","./asarray1.ts","./asarray2.ts","./asarray3.ts","./random2.d.ts","./anothernonconsecutive.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"},"-10812219521-export const random = \"hello\";",{"version":"-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n"},"-10812219521-export const random = \"hello\";",{"version":"-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n","signature":"-6425002032-export declare const x = \"hello\";\n"},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},"-10812219521-export const random = \"hello\";",{"version":"-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n"}],"root":[2,4,[6,8],10],"options":{"composite":true},"fileIdsList":[[9],[5],[3]],"referencedMap":[[10,1],[6,2],[4,3]],"semanticDiagnosticsPerFile":[1,10,6,7,8,2,4,3,5,9],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./file2.ts","./random.d.ts","./nonconsecutive.ts","./random1.d.ts","./asarray1.ts","./asarray2.ts","./asarray3.ts","./random2.d.ts","./anothernonconsecutive.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1},{"version":"-10812219521-export const random = \"hello\";","impliedFormat":1},{"version":"-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n","impliedFormat":1},{"version":"-10812219521-export const random = \"hello\";","impliedFormat":1},{"version":"-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-10812219521-export const random = \"hello\";","impliedFormat":1},{"version":"-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n","signature":"-7909998901-export declare const nonConsecutive = \"hello\";\n","impliedFormat":1}],"root":[2,4,[6,8],10],"options":{"composite":true},"fileIdsList":[[9],[5],[3]],"referencedMap":[[10,1],[6,2],[4,3]],"semanticDiagnosticsPerFile":[1,10,6,7,8,2,4,3,5,9],"latestChangedDtsFile":"./anotherNonConsecutive.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -380,71 +411,100 @@ exitCode:: ExitStatus.Success "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" }, "./random.d.ts": { + "original": { + "version": "-10812219521-export const random = \"hello\";", + "impliedFormat": 1 + }, "version": "-10812219521-export const random = \"hello\";", - "signature": "-10812219521-export const random = \"hello\";" + "signature": "-10812219521-export const random = \"hello\";", + "impliedFormat": "commonjs" }, "./nonconsecutive.ts": { "original": { "version": "-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": 1 }, "version": "-4807644630-import { random } from \"./random\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": "commonjs" }, "./random1.d.ts": { + "original": { + "version": "-10812219521-export const random = \"hello\";", + "impliedFormat": 1 + }, "version": "-10812219521-export const random = \"hello\";", - "signature": "-10812219521-export const random = \"hello\";" + "signature": "-10812219521-export const random = \"hello\";", + "impliedFormat": "commonjs" }, "./asarray1.ts": { "original": { "version": "-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-21033449408-import { random } from \"./random1\";\nexport const x = \"hello\";\n", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./asarray2.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./asarray3.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./random2.d.ts": { + "original": { + "version": "-10812219521-export const random = \"hello\";", + "impliedFormat": 1 + }, "version": "-10812219521-export const random = \"hello\";", - "signature": "-10812219521-export const random = \"hello\";" + "signature": "-10812219521-export const random = \"hello\";", + "impliedFormat": "commonjs" }, "./anothernonconsecutive.ts": { "original": { "version": "-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": 1 }, "version": "-23429155204-import { random } from \"./random2\";\nexport const nonConsecutive = \"hello\";\n", - "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n" + "signature": "-7909998901-export declare const nonConsecutive = \"hello\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -501,6 +561,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./anotherNonConsecutive.d.ts" }, "version": "FakeTSVersion", - "size": 1979 + "size": 2195 } diff --git a/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js index 62539412a7671..0fdb0c84a01e8 100644 --- a/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js @@ -73,7 +73,7 @@ exports.y = "world"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},"-12516578989-export const random = \"world\";",{"version":"-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n","signature":"-5502661211-export declare const y = \"world\";\n"}],"root":[2,4],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-12516578989-export const random = \"world\";","impliedFormat":1},{"version":"-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1}],"root":[2,4],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,31 +93,42 @@ exports.y = "world"; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./random.d.ts": { + "original": { + "version": "-12516578989-export const random = \"world\";", + "impliedFormat": 1 + }, "version": "-12516578989-export const random = \"world\";", - "signature": "-12516578989-export const random = \"world\";" + "signature": "-12516578989-export const random = \"world\";", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -147,7 +158,7 @@ exports.y = "world"; "latestChangedDtsFile": "./file2.d.ts" }, "version": "FakeTSVersion", - "size": 1095 + "size": 1179 } @@ -172,7 +183,7 @@ exitCode:: ExitStatus.Success //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-12516578989-export const random = \"world\";",{"version":"-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n","signature":"-5502661211-export declare const y = \"world\";\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./random.d.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12516578989-export const random = \"world\";","impliedFormat":1},{"version":"-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -191,23 +202,32 @@ exitCode:: ExitStatus.Success "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./random.d.ts": { + "original": { + "version": "-12516578989-export const random = \"world\";", + "impliedFormat": 1 + }, "version": "-12516578989-export const random = \"world\";", - "signature": "-12516578989-export const random = \"world\";" + "signature": "-12516578989-export const random = \"world\";", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-12123221340-import { random } from \"./random\";\nexport const y = \"world\";\n", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -232,6 +252,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./file2.d.ts" }, "version": "FakeTSVersion", - "size": 959 + "size": 1025 } diff --git a/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js index ab71bc4c7a34e..5ea5372a44ac8 100644 --- a/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js @@ -96,7 +96,7 @@ exports.y = "world"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"}],"root":[[2,5]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file4.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file4.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -112,43 +112,53 @@ exports.y = "world"; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" }, "./file3.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" }, "./file4.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -179,7 +189,7 @@ exports.y = "world"; "latestChangedDtsFile": "./file4.d.ts" }, "version": "FakeTSVersion", - "size": 1234 + "size": 1324 } @@ -204,7 +214,7 @@ exitCode:: ExitStatus.Success //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"}],"root":[[2,4]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file4.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./file2.ts","./file3.ts","./file4.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file4.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,35 +229,43 @@ exitCode:: ExitStatus.Success "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" }, "./file3.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" }, "./file4.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -276,6 +294,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./file4.d.ts" }, "version": "FakeTSVersion", - "size": 1100 + "size": 1172 } diff --git a/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js index 6b10885c50293..6a005de25657a 100644 --- a/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js @@ -68,7 +68,7 @@ exports.y = "world"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n"},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-10637577098-export const x = \"hello\";","signature":"-6425002032-export declare const x = \"hello\";\n","impliedFormat":1},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -82,27 +82,33 @@ exports.y = "world"; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": 1 }, "version": "-10637577098-export const x = \"hello\";", - "signature": "-6425002032-export declare const x = \"hello\";\n" + "signature": "-6425002032-export declare const x = \"hello\";\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +133,7 @@ exports.y = "world"; "latestChangedDtsFile": "./file2.d.ts" }, "version": "FakeTSVersion", - "size": 964 + "size": 1018 } @@ -152,7 +158,7 @@ exitCode:: ExitStatus.Success //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-11520681045-export const y = \"world\";","signature":"-5502661211-export declare const y = \"world\";\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -165,19 +171,23 @@ exitCode:: ExitStatus.Success "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": 1 }, "version": "-11520681045-export const y = \"world\";", - "signature": "-5502661211-export declare const y = \"world\";\n" + "signature": "-5502661211-export declare const y = \"world\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -197,6 +207,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./file2.d.ts" }, "version": "FakeTSVersion", - "size": 828 + "size": 864 } diff --git a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js index af654b1ed89f3..af0dde4c27fda 100644 --- a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js +++ b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js @@ -136,7 +136,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -151,36 +151,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -212,7 +220,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -238,7 +246,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,27 +267,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -309,7 +331,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -330,7 +352,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -356,31 +378,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -414,7 +455,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js index e8c441b66f743..597a08d20659a 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js @@ -147,7 +147,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -162,36 +162,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +231,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -249,7 +257,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -270,27 +278,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -320,6 +342,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js index 091e8e9dd5881..a13b93431c7c7 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js @@ -131,7 +131,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -146,36 +146,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -207,7 +215,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } @@ -238,7 +246,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,27 +267,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -309,7 +331,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } @@ -335,7 +357,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -361,31 +383,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -419,7 +460,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js index 08545f4840575..904045e53964c 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js @@ -135,7 +135,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,36 +150,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -211,7 +219,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.js] @@ -237,7 +245,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./out/decls/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./out/decls/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,27 +266,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -308,7 +330,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./out/decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1492 + "size": 1588 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -329,7 +351,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -355,31 +377,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/out/decls/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -413,6 +454,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1628 + "size": 1754 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js index d97e8ff89d881..ed5063e51d1f6 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js @@ -135,7 +135,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,36 +150,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -211,7 +219,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/outDir/index.d.ts] @@ -237,7 +245,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,27 +266,41 @@ exports.m = mod; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -308,7 +330,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1475 + "size": 1571 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -329,7 +351,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -355,31 +377,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/outdir/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -413,6 +454,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1625 + "size": 1751 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js index e25b6f00cf48a..41c1001498c8a 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js @@ -135,7 +135,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,36 +150,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -211,7 +219,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -237,7 +245,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,27 +266,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -308,6 +330,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } diff --git a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js index 2cfd826c6c969..91e51567e2b2e 100644 --- a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js +++ b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js @@ -72,7 +72,7 @@ declare const dts: any; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -87,36 +87,44 @@ declare const dts: any; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -148,7 +156,7 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -199,7 +207,7 @@ export const m = mod; } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -220,27 +228,41 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -270,7 +292,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -323,7 +345,7 @@ export const m = mod; } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,31 +371,50 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -407,7 +448,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } @@ -464,7 +505,7 @@ var m = 10; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -477,21 +518,25 @@ var m = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "3708260210-const m = 10;", "signature": "-357908916-declare const m = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3708260210-const m = 10;", "signature": "-357908916-declare const m = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -513,7 +558,7 @@ var m = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 883 + "size": 919 } @@ -565,7 +610,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -580,36 +625,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -641,7 +694,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1453 + "size": 1525 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time @@ -711,7 +764,7 @@ const m = 10; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -724,21 +777,25 @@ const m = 10; "../../../../../a/lib/lib.es2020.full.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "3708260210-const m = 10;", "signature": "-357908916-declare const m = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3708260210-const m = 10;", "signature": "-357908916-declare const m = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -761,6 +818,6 @@ const m = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 906 + "size": 942 } diff --git a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js index d5a8fbb3babc0..e6e00f03eb83a 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js +++ b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js @@ -71,7 +71,7 @@ declare const dts: any; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -86,36 +86,44 @@ declare const dts: any; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -147,7 +155,7 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -198,7 +206,7 @@ export const m = mod; } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,27 +227,41 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -269,7 +291,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -322,7 +344,7 @@ export const m = mod; } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -348,31 +370,50 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -406,7 +447,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js index 3192c84f3739f..a7c9bef568fb6 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js @@ -71,7 +71,7 @@ declare const dts: any; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -86,36 +86,44 @@ declare const dts: any; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -147,7 +155,7 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -198,7 +206,7 @@ export const m = mod; } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,27 +227,41 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -269,7 +291,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -322,7 +344,7 @@ export const m = mod; } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -348,31 +370,50 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -406,7 +447,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js index 283f81909583e..820b0c201d6d2 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js @@ -161,7 +161,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,36 +176,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -237,11 +245,11 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n"],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":85,"length":7,"code":2339,"category":1,"messageText":"Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'."}]]],"affectedFilesPendingEmit":[4],"emitSignatures":[4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":85,"length":7,"code":2339,"category":1,"messageText":"Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'."}]]],"affectedFilesPendingEmit":[4],"emitSignatures":[4]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -262,23 +270,40 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", + "impliedFormat": 1 + }, "version": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" + "signature": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -328,7 +353,7 @@ function multiply(a, b) { return a * b; } ] }, "version": "FakeTSVersion", - "size": 1507 + "size": 1615 } diff --git a/tests/baselines/reference/tsbuild/sample1/explainFiles.js b/tests/baselines/reference/tsbuild/sample1/explainFiles.js index e14fc51eba184..95082bbfa611d 100644 --- a/tests/baselines/reference/tsbuild/sample1/explainFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/explainFiles.js @@ -185,7 +185,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -200,36 +200,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -261,7 +269,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -287,7 +295,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -308,27 +316,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -358,7 +380,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -379,7 +401,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -405,31 +427,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -463,7 +504,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } @@ -562,7 +603,7 @@ exports.someClass = someClass; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -577,36 +618,44 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -638,13 +687,13 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1587 } //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -665,27 +714,41 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -715,12 +778,12 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1611 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -746,31 +809,50 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -804,7 +886,7 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1655 + "size": 1781 } @@ -875,7 +957,7 @@ var someClass2 = /** @class */ (function () { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -890,36 +972,44 @@ var someClass2 = /** @class */ (function () { "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -951,7 +1041,7 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1537 + "size": 1609 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js index e468712086c29..d43bdb977ba3a 100644 --- a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js +++ b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js @@ -72,7 +72,7 @@ declare const dts: any; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -87,36 +87,44 @@ declare const dts: any; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -148,7 +156,7 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -199,7 +207,7 @@ export const m = mod; } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -220,27 +228,41 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -270,7 +292,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -323,7 +345,7 @@ export const m = mod; } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,31 +371,50 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -407,7 +448,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js index dee2836924c6d..55660ff8472c0 100644 --- a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js +++ b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js @@ -126,7 +126,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -141,36 +141,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -202,7 +210,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -228,7 +236,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -249,27 +257,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -299,7 +321,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -320,7 +342,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -346,31 +368,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -404,7 +445,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } @@ -437,7 +478,7 @@ function foo() { } //# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -458,27 +499,41 @@ function foo() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -508,7 +563,7 @@ function foo() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1415 + "size": 1511 } @@ -557,7 +612,7 @@ export declare class cNew { //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -578,27 +633,41 @@ export declare class cNew { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}", - "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n" + "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n", + "impliedFormat": 1 }, "version": "-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}", - "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n" + "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -628,14 +697,14 @@ export declare class cNew { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1468 + "size": 1564 } Dts change to Logic:: After building next project //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -661,31 +730,50 @@ Dts change to Logic:: After building next project "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n", + "impliedFormat": 1 + }, "version": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n", - "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n" + "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -719,6 +807,6 @@ Dts change to Logic:: After building next project "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1571 + "size": 1697 } diff --git a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js index f2c7ced988b8f..f765f1750fed5 100644 --- a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js @@ -150,7 +150,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -165,36 +165,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -226,7 +234,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -252,7 +260,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,27 +281,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -323,7 +345,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -344,7 +366,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -370,31 +392,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -428,7 +469,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } @@ -487,7 +528,7 @@ exports.someClass = someClass; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -502,36 +543,44 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -563,13 +612,13 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1587 } //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -590,27 +639,41 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -640,12 +703,12 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1611 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -671,31 +734,50 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -729,7 +811,7 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1655 + "size": 1781 } @@ -778,7 +860,7 @@ var someClass2 = /** @class */ (function () { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -793,36 +875,44 @@ var someClass2 = /** @class */ (function () { "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -854,7 +944,7 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1537 + "size": 1609 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/listFiles.js b/tests/baselines/reference/tsbuild/sample1/listFiles.js index ca048dc9f5ab3..7fc0eb17c17be 100644 --- a/tests/baselines/reference/tsbuild/sample1/listFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listFiles.js @@ -149,7 +149,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -164,36 +164,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -225,7 +233,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -251,7 +259,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,27 +280,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -322,7 +344,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -343,7 +365,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -369,31 +391,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -427,7 +468,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } @@ -490,7 +531,7 @@ exports.someClass = someClass; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -505,36 +546,44 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -566,13 +615,13 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1587 } //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -593,27 +642,41 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -643,12 +706,12 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1611 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -674,31 +737,50 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -732,7 +814,7 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1655 + "size": 1781 } @@ -782,7 +864,7 @@ var someClass2 = /** @class */ (function () { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -797,36 +879,44 @@ var someClass2 = /** @class */ (function () { "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -858,7 +948,7 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1537 + "size": 1609 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js index 126b6af244213..bff9704cbe005 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -71,7 +71,7 @@ declare const dts: any; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -86,36 +86,44 @@ declare const dts: any; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -147,7 +155,7 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -198,7 +206,7 @@ export const m = mod; } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,27 +227,41 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -269,7 +291,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -322,7 +344,7 @@ export const m = mod; } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -348,31 +370,50 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -406,7 +447,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } @@ -440,7 +481,7 @@ exitCode:: ExitStatus.Success //// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents //// [/user/username/projects/sample1/core/index.js] file written with same contents //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -455,36 +496,44 @@ exitCode:: ExitStatus.Success "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -516,14 +565,14 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1457 + "size": 1529 } //// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -544,27 +593,41 @@ exitCode:: ExitStatus.Success "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -594,13 +657,13 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1485 + "size": 1581 } //// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -626,31 +689,50 @@ exitCode:: ExitStatus.Success "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -684,6 +766,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1625 + "size": 1751 } diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js index 6088aee9cf0ac..88ec8676240b7 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js @@ -72,7 +72,7 @@ declare const dts: any; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -87,36 +87,44 @@ declare const dts: any; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -148,7 +156,7 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -199,7 +207,7 @@ export const m = mod; } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -220,27 +228,41 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -270,7 +292,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -323,7 +345,7 @@ export const m = mod; } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,31 +371,50 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -407,7 +448,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js index fe06de7e9b205..914612670dea4 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js @@ -160,7 +160,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -175,36 +175,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -236,7 +244,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -262,7 +270,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -283,27 +291,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -333,7 +355,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -354,7 +376,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":1},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":1},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -380,31 +402,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -439,7 +480,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1629 + "size": 1755 } @@ -473,7 +514,7 @@ exitCode:: ExitStatus.Success //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -499,31 +540,50 @@ exitCode:: ExitStatus.Success "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -557,6 +617,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js index 049c07100416a..d7c7282bcea17 100644 --- a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js +++ b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js @@ -72,7 +72,7 @@ declare const dts: any; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -87,36 +87,44 @@ declare const dts: any; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -148,7 +156,7 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -199,7 +207,7 @@ export const m = mod; } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -220,27 +228,41 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -270,7 +292,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -323,7 +345,7 @@ export const m = mod; } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,31 +371,50 @@ export const m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -407,7 +448,7 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js index 82d7e79b56023..8c676a898e513 100644 --- a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js +++ b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js @@ -130,7 +130,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false,"impliedFormat":1},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -145,26 +145,32 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", "signature": false, - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -188,6 +194,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 1036 + "size": 1090 } diff --git a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js index 93108709375ca..6aa83ccccb175 100644 --- a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js +++ b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js @@ -130,7 +130,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false,"impliedFormat":1},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -145,26 +145,32 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", "signature": false, - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -188,6 +194,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 1036 + "size": 1090 } diff --git a/tests/baselines/reference/tsbuild/sample1/sample.js b/tests/baselines/reference/tsbuild/sample1/sample.js index 0f697e93d090d..20388d09675d5 100644 --- a/tests/baselines/reference/tsbuild/sample1/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/sample.js @@ -315,7 +315,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -330,36 +330,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -391,7 +399,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -542,7 +550,7 @@ sourceFile:index.ts >>>//# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -563,27 +571,41 @@ sourceFile:index.ts "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -613,7 +635,7 @@ sourceFile:index.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -634,7 +656,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -660,31 +682,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -718,7 +759,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } @@ -935,7 +976,7 @@ exports.someClass = someClass; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -950,36 +991,44 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1011,14 +1060,14 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1587 } //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1039,27 +1088,41 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1089,12 +1152,12 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1611 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1120,31 +1183,50 @@ exports.someClass = someClass; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1178,7 +1260,7 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1655 + "size": 1781 } @@ -1252,7 +1334,7 @@ var someClass2 = /** @class */ (function () { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1267,36 +1349,44 @@ var someClass2 = /** @class */ (function () { "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1328,7 +1418,7 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1537 + "size": 1609 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time @@ -1427,7 +1517,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1448,27 +1538,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1499,12 +1603,12 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1548 + "size": 1644 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1530,31 +1634,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/decls/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1588,7 +1711,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1661 + "size": 1787 } diff --git a/tests/baselines/reference/tsbuild/sample1/tsbuildinfo-has-error.js b/tests/baselines/reference/tsbuild/sample1/tsbuildinfo-has-error.js index 241ba5c90642d..cdc70ceaaa906 100644 --- a/tests/baselines/reference/tsbuild/sample1/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tsbuild/sample1/tsbuildinfo-has-error.js @@ -46,7 +46,7 @@ exports.x = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -59,15 +59,22 @@ exports.x = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -83,7 +90,7 @@ exports.x = 10; ] }, "version": "FakeTSVersion", - "size": 680 + "size": 728 } @@ -91,7 +98,7 @@ exports.x = 10; Change:: tsbuildinfo written has error Input:: //// [/src/project/tsconfig.tsbuildinfo] -Some random string{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +Some random string{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} @@ -109,6 +116,6 @@ exitCode:: ExitStatus.Success //// [/src/project/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js index 99062f9763e39..58d29cf116fff 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js @@ -125,7 +125,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -140,28 +140,42 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { + "original": { + "version": "-3090574810-export const World = \"hello\";", + "impliedFormat": 1 + }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-3090574810-export const World = \"hello\";" + "signature": "-3090574810-export const World = \"hello\";", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": 1 + }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -189,7 +203,7 @@ function multiply(a, b) { return a * b; } ] }, "version": "FakeTSVersion", - "size": 1064 + "size": 1160 } @@ -229,7 +243,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -244,36 +258,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -302,6 +324,6 @@ export declare function multiply(a: number, b: number): number; ] }, "version": "FakeTSVersion", - "size": 1373 + "size": 1445 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js b/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js index 8221aaff3e5b3..7fe8bee10f78e 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js @@ -153,7 +153,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,36 +168,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -229,7 +237,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -255,7 +263,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -276,27 +284,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -326,7 +348,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -347,7 +369,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -373,31 +395,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -431,7 +472,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } @@ -483,7 +524,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -498,36 +539,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -559,7 +608,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1451 + "size": 1523 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time @@ -615,7 +664,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -630,36 +679,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -691,7 +748,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js index 73263c44ab85d..9a5563748111f 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js @@ -154,7 +154,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -169,36 +169,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -230,7 +238,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -256,7 +264,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -277,27 +285,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -327,7 +349,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -348,7 +370,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -374,31 +396,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -433,7 +474,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1642 + "size": 1768 } @@ -518,7 +559,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -544,31 +585,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -603,6 +663,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1641 + "size": 1767 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js index d6b40556f838b..bba7c6f316b8e 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -153,7 +153,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,36 +168,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -229,7 +237,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -255,7 +263,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0CAEC;AAHD,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -276,27 +284,41 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -326,7 +348,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1574 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -347,7 +369,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -373,31 +395,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -431,7 +472,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js index 760bcd602bace..887c1ca10ed28 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js @@ -316,7 +316,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -331,36 +331,44 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -392,7 +400,7 @@ function multiply(a, b) { return a * b; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1450 + "size": 1522 } //// [/user/username/projects/sample1/logic/index.d.ts] @@ -543,7 +551,7 @@ sourceFile:index.ts >>>//# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo.readable.baseline.txt] { @@ -564,27 +572,41 @@ sourceFile:index.ts "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -615,7 +637,7 @@ sourceFile:index.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1520 + "size": 1616 } //// [/user/username/projects/sample1/tests/index.d.ts] @@ -636,7 +658,7 @@ exports.m = mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -662,31 +684,50 @@ exports.m = mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -720,6 +761,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1744 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js index b63453e28daed..14af9405bf005 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js @@ -125,7 +125,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -140,28 +140,42 @@ function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { + "original": { + "version": "-3090574810-export const World = \"hello\";", + "impliedFormat": 1 + }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-3090574810-export const World = \"hello\";" + "signature": "-3090574810-export const World = \"hello\";", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": 1 + }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -189,7 +203,7 @@ function multiply(a, b) { return a * b; } ] }, "version": "FakeTSVersion", - "size": 1048 + "size": 1144 } @@ -241,7 +255,7 @@ define(["require", "exports"], function (require, exports) { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -256,28 +270,42 @@ define(["require", "exports"], function (require, exports) { "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { + "original": { + "version": "-3090574810-export const World = \"hello\";", + "impliedFormat": 1 + }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-3090574810-export const World = \"hello\";" + "signature": "-3090574810-export const World = \"hello\";", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": 1 + }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -305,6 +333,6 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 1048 + "size": 1144 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js index c98b0ec73bd87..faa0a3fe8a606 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js @@ -135,7 +135,7 @@ export function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.esnext.d.ts","../../../../../a/lib/lib.esnext.full.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8926001564-/// \n/// ","-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":99},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.esnext.d.ts","../../../../../a/lib/lib.esnext.full.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"8926001564-/// \n/// ","impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[3,5]],"options":{"target":99},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -151,32 +151,51 @@ export function multiply(a, b) { return a * b; } "../../../../../a/lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../../../a/lib/lib.esnext.full.d.ts": { + "original": { + "version": "8926001564-/// \n/// ", + "impliedFormat": 1 + }, "version": "8926001564-/// \n/// ", - "signature": "8926001564-/// \n/// " + "signature": "8926001564-/// \n/// ", + "impliedFormat": "commonjs" }, "./anothermodule.ts": { + "original": { + "version": "-3090574810-export const World = \"hello\";", + "impliedFormat": 1 + }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-3090574810-export const World = \"hello\";" + "signature": "-3090574810-export const World = \"hello\";", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": 1 + }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -205,7 +224,7 @@ export function multiply(a, b) { return a * b; } ] }, "version": "FakeTSVersion", - "size": 1190 + "size": 1316 } @@ -263,7 +282,7 @@ function multiply(a, b) { return a * b; } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../../../../../a/lib/lib.esnext.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":["8926001564-/// \n/// ",{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../../../../../a/lib/lib.esnext.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"8926001564-/// \n/// ","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[3,5]],"options":{"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -277,34 +296,53 @@ function multiply(a, b) { return a * b; } ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "8926001564-/// \n/// ", + "impliedFormat": 1 + }, "version": "8926001564-/// \n/// ", - "signature": "8926001564-/// \n/// " + "signature": "8926001564-/// \n/// ", + "impliedFormat": "commonjs" }, "../../../../../a/lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { + "original": { + "version": "-3090574810-export const World = \"hello\";", + "impliedFormat": 1 + }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-3090574810-export const World = \"hello\";" + "signature": "-3090574810-export const World = \"hello\";", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": 1 + }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -333,6 +371,6 @@ function multiply(a, b) { return a * b; } ] }, "version": "FakeTSVersion", - "size": 1177 + "size": 1303 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js index 95e11f3096e79..f60ca70705f57 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js @@ -138,7 +138,7 @@ a_1.X; //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -151,19 +151,23 @@ a_1.X; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 }, "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -183,11 +187,11 @@ a_1.X; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 814 + "size": 850 } //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -206,23 +210,32 @@ a_1.X; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-17186364832-import {A} from 'a';\nexport const b = new A();", - "signature": "6078874460-import { A } from 'a';\nexport declare const b: A;\n" + "signature": "6078874460-import { A } from 'a';\nexport declare const b: A;\n", + "impliedFormat": 1 }, "version": "-17186364832-import {A} from 'a';\nexport const b = new A();", - "signature": "6078874460-import { A } from 'a';\nexport declare const b: A;\n" + "signature": "6078874460-import { A } from 'a';\nexport declare const b: A;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -247,6 +260,6 @@ a_1.X; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 947 + "size": 1013 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js index 8658ccf4b6204..70c009ffacffe 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js @@ -144,7 +144,7 @@ a_1.X; //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -157,19 +157,23 @@ a_1.X; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 }, "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -189,11 +193,11 @@ a_1.X; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 814 + "size": 850 } //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -212,23 +216,32 @@ a_1.X; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": 1 }, "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -253,6 +266,6 @@ a_1.X; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 959 + "size": 1025 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js index e1075c2a7c4a7..abf3272062eb6 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js @@ -118,7 +118,7 @@ exports.A = A; //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -131,19 +131,23 @@ exports.A = A; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 }, "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -163,11 +167,11 @@ exports.A = A; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 814 + "size": 850 } //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-17186364832-import {A} from 'a';\nexport const b = new A();"],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./b.ts","start":16,"length":3,"messageText":"Cannot find module 'a' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"emitSignatures":[2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./b.ts","start":16,"length":3,"messageText":"Cannot find module 'a' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"emitSignatures":[2]},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -180,15 +184,22 @@ exports.A = A; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-17186364832-import {A} from 'a';\nexport const b = new A();", + "impliedFormat": 1 + }, "version": "-17186364832-import {A} from 'a';\nexport const b = new A();", - "signature": "-17186364832-import {A} from 'a';\nexport const b = new A();" + "signature": "-17186364832-import {A} from 'a';\nexport const b = new A();", + "impliedFormat": "commonjs" } }, "root": [ @@ -228,6 +239,6 @@ exports.A = A; ] }, "version": "FakeTSVersion", - "size": 941 + "size": 989 } diff --git a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js index 5a4a58630a29d..98927b62f4bb4 100644 --- a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js @@ -46,7 +46,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":false},{"version":"1045484683-export function bar() { }","signature":false}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":false,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":false,"impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -61,24 +61,30 @@ Output:: "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": false, - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "4646078106-export function foo() { }" + "version": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "1045484683-export function bar() { }" + "version": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" } }, "root": [ @@ -102,10 +108,26 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 754 + "size": 808 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/a.ts: *new* {} @@ -223,7 +245,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-3260843409-export function fooBar() { }","signature":false},{"version":"1045484683-export function bar() { }","signature":false}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-3260843409-export function fooBar() { }","signature":false,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":false,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -238,24 +260,30 @@ Output:: "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": false, - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-3260843409-export function fooBar() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-3260843409-export function fooBar() { }" + "version": "-3260843409-export function fooBar() { }", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "1045484683-export function bar() { }" + "version": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" } }, "root": [ @@ -280,7 +308,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 777 + "size": 831 } @@ -388,7 +416,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3260843409-export function fooBar() { }","signature":"-6611919720-export declare function fooBar(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3260843409-export function fooBar() { }","signature":"-6611919720-export declare function fooBar(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -402,27 +430,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-3260843409-export function fooBar() { }", - "signature": "-6611919720-export declare function fooBar(): void;\n" + "signature": "-6611919720-export declare function fooBar(): void;\n", + "impliedFormat": 1 }, "version": "-3260843409-export function fooBar() { }", - "signature": "-6611919720-export declare function fooBar(): void;\n" + "signature": "-6611919720-export declare function fooBar(): void;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -448,7 +482,7 @@ Output:: "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 903 + "size": 957 } //// [/user/username/projects/myproject/a.js] diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js index 7f0e0a17d8559..84c8938606087 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js @@ -220,7 +220,7 @@ Output:: //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -249,27 +249,49 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { + "original": { + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "impliedFormat": 1 + }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n" + "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { + "original": { + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 + }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { + "original": { + "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "impliedFormat": 1 + }, "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" + "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -350,13 +372,29 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2200 + "size": 2338 } PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} /user/username/projects/demo/animals/package.json: *new* {"pollingInterval":2000} +/user/username/projects/demo/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/demo/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/demo/animals/animal.ts: *new* @@ -518,7 +556,7 @@ Output:: //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":1,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":1,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -547,39 +585,52 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { "original": { "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { "original": { "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { "original": { "version": "-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 }, "version": "-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -660,7 +711,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2710 + "size": 2812 } diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js index 016c6b8c1c0fe..d7da4e6a432c7 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js @@ -249,7 +249,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -262,19 +262,23 @@ export declare function lastElementOf(arr: T[]): T | undefined; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { "original": { "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 }, "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -304,7 +308,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1324 + "size": 1360 } @@ -381,7 +385,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -407,35 +411,51 @@ export declare function createDog(): Dog; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { "original": { "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../core/utilities.d.ts": { + "original": { + "version": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 + }, "version": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { "original": { "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -485,7 +505,7 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2221 + "size": 2335 } //// [/user/username/projects/demo/lib/zoo/zoo.js] @@ -506,7 +526,7 @@ export declare function createZoo(): Array; //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1},{"version":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -531,31 +551,50 @@ export declare function createZoo(): Array; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../animals/animal.d.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../animals/dog.d.ts": { + "original": { + "version": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 + }, "version": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" }, "../animals/index.d.ts": { + "original": { + "version": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 + }, "version": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../../zoo/zoo.ts": { "original": { "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", - "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" + "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedFormat": 1 }, "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", - "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" + "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -599,7 +638,7 @@ export declare function createZoo(): Array; "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1763 + "size": 1889 } diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js index 00311ff894179..71cd8c810c3ff 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -187,6 +187,21 @@ Output:: [12:01:36 AM] Building project '/home/src/projects/project1/tsconfig.json'... +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -202,6 +217,13 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -217,6 +239,13 @@ File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -232,10 +261,34 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -254,6 +307,13 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts @@ -280,6 +340,16 @@ project1/typeroot1/sometype/index.d.ts [12:01:55 AM] Building project '/home/src/projects/project2/tsconfig.json'... +File '/home/src/projects/project2/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project2/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -288,6 +358,13 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -296,6 +373,13 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-es5/index.d.ts Library 'lib.es5.d.ts' specified in compilerOptions node_modules/@typescript/lib-dom/index.d.ts @@ -308,6 +392,16 @@ project2/utils.d.ts [12:02:06 AM] Building project '/home/src/projects/project3/tsconfig.json'... +File '/home/src/projects/project3/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project3/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -316,6 +410,13 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -324,6 +425,13 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-es5/index.d.ts Library 'lib.es5.d.ts' specified in compilerOptions node_modules/@typescript/lib-dom/index.d.ts @@ -336,6 +444,16 @@ project3/utils.d.ts [12:02:17 AM] Building project '/home/src/projects/project4/tsconfig.json'... +File '/home/src/projects/project4/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project4/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -351,6 +469,13 @@ File '/home/src/projects/node_modules/@typescript/lib-esnext/index.tsx' does not File '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. ======== Module name '@typescript/lib-esnext' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-esnext/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -359,6 +484,13 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -367,6 +499,13 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-webworker' Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-esnext/index.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions node_modules/@typescript/lib-dom/index.d.ts @@ -388,26 +527,37 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefi FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/tsconfig.json 2000 undefined Config file /home/src/projects/project2/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/index.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/utils.d.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/package.json 2000 undefined package.json file /home/src/projects/project2/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/tsconfig.json 2000 undefined Config file /home/src/projects/project3/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/index.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/utils.d.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/package.json 2000 undefined package.json file /home/src/projects/project3/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/tsconfig.json 2000 undefined Config file /home/src/projects/project4/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/index.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json @@ -443,7 +593,7 @@ export declare const x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -464,74 +614,103 @@ export declare const x = "type1"; "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -569,7 +748,7 @@ export declare const x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1763 + "size": 1979 } //// [/home/src/projects/project2/index.js] @@ -584,7 +763,7 @@ export declare const y = 10; //// [/home/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -599,32 +778,43 @@ export declare const y = 10; "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -650,7 +840,7 @@ export declare const y = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1029 + "size": 1113 } //// [/home/src/projects/project3/index.js] @@ -665,7 +855,7 @@ export declare const z = 10; //// [/home/src/projects/project3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -680,32 +870,43 @@ export declare const z = 10; "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -731,7 +932,7 @@ export declare const z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1029 + "size": 1113 } //// [/home/src/projects/project4/index.js] @@ -746,7 +947,7 @@ export declare const z = 10; //// [/home/src/projects/project4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-esnext/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-esnext/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -762,41 +963,54 @@ export declare const z = 10; "../node_modules/@typescript/lib-esnext/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -823,11 +1037,15 @@ export declare const z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1174 + "size": 1276 } PolledWatches:: +/home/package.json: *new* + {"pollingInterval":2000} +/home/src/package.json: *new* + {"pollingInterval":2000} /home/src/projects/node_modules/@typescript/lib-dom/package.json: *new* {"pollingInterval":2000} /home/src/projects/node_modules/@typescript/lib-es5/package.json: *new* @@ -838,8 +1056,26 @@ PolledWatches:: {"pollingInterval":2000} /home/src/projects/node_modules/@typescript/lib-webworker/package.json: *new* {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project1/typeroot1/sometype/package.json: *new* {"pollingInterval":2000} +/home/src/projects/project2/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project3/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project4/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/projects/project1/core.d.ts: *new* diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js index e5cafd34033b2..fcb5058c3e2e3 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -148,6 +148,21 @@ Output:: [12:01:16 AM] Building project '/home/src/projects/project1/tsconfig.json'... +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -174,6 +189,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -200,6 +219,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -226,10 +249,31 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -259,6 +303,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -285,6 +333,16 @@ project1/typeroot1/sometype/index.d.ts [12:01:35 AM] Building project '/home/src/projects/project2/tsconfig.json'... +File '/home/src/projects/project2/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project2/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -293,6 +351,10 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -301,6 +363,10 @@ Directory '/home/src/projects/project2/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library 'lib.es5.d.ts' specified in compilerOptions ../lib/lib.dom.d.ts @@ -313,6 +379,16 @@ project2/utils.d.ts [12:01:46 AM] Building project '/home/src/projects/project3/tsconfig.json'... +File '/home/src/projects/project3/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project3/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -321,6 +397,10 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-es5' Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -329,6 +409,10 @@ Directory '/home/src/projects/project3/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library 'lib.es5.d.ts' specified in compilerOptions ../lib/lib.dom.d.ts @@ -341,6 +425,16 @@ project3/utils.d.ts [12:01:57 AM] Building project '/home/src/projects/project4/tsconfig.json'... +File '/home/src/projects/project4/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project4/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -367,6 +461,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-esnext' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -375,6 +473,10 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-dom' Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -383,6 +485,10 @@ Directory '/home/src/projects/project4/node_modules' does not exist, skipping al Scoped package detected, looking in 'typescript__lib-webworker' Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.esnext.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions ../lib/lib.dom.d.ts @@ -404,26 +510,36 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefi FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/lib/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/tsconfig.json 2000 undefined Config file /home/src/projects/project2/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/index.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/utils.d.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/package.json 2000 undefined package.json file /home/src/projects/project2/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/tsconfig.json 2000 undefined Config file /home/src/projects/project3/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/index.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/utils.d.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/package.json 2000 undefined package.json file /home/src/projects/project3/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/tsconfig.json 2000 undefined Config file /home/src/projects/project4/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/index.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json @@ -459,7 +575,7 @@ export declare const x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -480,74 +596,103 @@ export declare const x = "type1"; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -585,7 +730,7 @@ export declare const x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1667 + "size": 1883 } //// [/home/src/projects/project2/index.js] @@ -600,7 +745,7 @@ export declare const y = 10; //// [/home/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -615,32 +760,43 @@ export declare const y = 10; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-11999455899-export const y = 10", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -666,7 +822,7 @@ export declare const y = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 981 + "size": 1065 } //// [/home/src/projects/project3/index.js] @@ -681,7 +837,7 @@ export declare const z = 10; //// [/home/src/projects/project3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[3,4],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -696,32 +852,43 @@ export declare const z = 10; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -747,7 +914,7 @@ export declare const z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 981 + "size": 1065 } //// [/home/src/projects/project4/index.js] @@ -762,7 +929,7 @@ export declare const z = 10; //// [/home/src/projects/project4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[4,5],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -778,41 +945,54 @@ export declare const z = 10; "../../lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-11960320506-export const z = 10", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -839,11 +1019,17 @@ export declare const z = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1102 + "size": 1204 } PolledWatches:: +/home/package.json: *new* + {"pollingInterval":2000} +/home/src/lib/package.json: *new* + {"pollingInterval":2000} +/home/src/package.json: *new* + {"pollingInterval":2000} /home/src/projects/node_modules/@typescript/lib-dom/package.json: *new* {"pollingInterval":2000} /home/src/projects/node_modules/@typescript/lib-es5/package.json: *new* @@ -854,8 +1040,22 @@ PolledWatches:: {"pollingInterval":2000} /home/src/projects/node_modules/@typescript/lib-webworker/package.json: *new* {"pollingInterval":2000} +/home/src/projects/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project1/typeroot1/sometype/package.json: *new* {"pollingInterval":2000} +/home/src/projects/project2/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project3/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project4/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/projects/project1/core.d.ts: *new* diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js index cfea782f51fdf..405cc7ce7456f 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js @@ -76,16 +76,23 @@ Output:: [12:00:46 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, Declaration. File name '/user/username/projects/myproject/packages/pkg2/const.js' has a '.js' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:01:07 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist [12:01:08 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -106,6 +113,8 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. @@ -115,6 +124,11 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not e File '/user/username/projects/myproject/packages/pkg2/build/const.tsx' does not exist. File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. [12:01:15 AM] Found 0 errors. Watching for file changes. @@ -147,7 +161,7 @@ export type TheStr = string; //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts","../other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n"},{"version":"-11225381282-export type { TheNum } from './const.js';","signature":"-9660329432-export type { TheNum } from './const.js';\n"},{"version":"-4609154030-export type TheStr = string;","signature":"-6073194916-export type TheStr = string;\n"}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../const.ts","../index.ts","../other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-13194036030-export type TheNum = 42;\n","impliedFormat":1},{"version":"-11225381282-export type { TheNum } from './const.js';","signature":"-9660329432-export type { TheNum } from './const.js';\n","impliedFormat":1},{"version":"-4609154030-export type TheStr = string;","signature":"-6073194916-export type TheStr = string;\n","impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -167,35 +181,43 @@ export type TheStr = string; "../../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../const.ts": { "original": { "version": "-11202312776-export type TheNum = 42;", - "signature": "-13194036030-export type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n", + "impliedFormat": 1 }, "version": "-11202312776-export type TheNum = 42;", - "signature": "-13194036030-export type TheNum = 42;\n" + "signature": "-13194036030-export type TheNum = 42;\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "-11225381282-export type { TheNum } from './const.js';", - "signature": "-9660329432-export type { TheNum } from './const.js';\n" + "signature": "-9660329432-export type { TheNum } from './const.js';\n", + "impliedFormat": 1 }, "version": "-11225381282-export type { TheNum } from './const.js';", - "signature": "-9660329432-export type { TheNum } from './const.js';\n" + "signature": "-9660329432-export type { TheNum } from './const.js';\n", + "impliedFormat": "commonjs" }, "../other.ts": { "original": { "version": "-4609154030-export type TheStr = string;", - "signature": "-6073194916-export type TheStr = string;\n" + "signature": "-6073194916-export type TheStr = string;\n", + "impliedFormat": 1 }, "version": "-4609154030-export type TheStr = string;", - "signature": "-6073194916-export type TheStr = string;\n" + "signature": "-6073194916-export type TheStr = string;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -229,7 +251,7 @@ export type TheStr = string; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 1082 + "size": 1154 } //// [/user/username/projects/myproject/packages/pkg1/build/index.js] @@ -240,9 +262,21 @@ exports.theNum = 42; +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/pkg2/build/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/packages/pkg1/index.ts: *new* {} +/user/username/projects/myproject/packages/pkg1/package.json: *new* + {} /user/username/projects/myproject/packages/pkg1/tsconfig.json: *new* {} /user/username/projects/myproject/packages/pkg2/const.ts: *new* @@ -336,73 +370,65 @@ Input:: Timeout callback:: count: 1 -1: timerToBuildInvalidatedProject *new* +2: timerToBuildInvalidatedProject *new* Before running Timeout callback:: count: 1 -1: timerToBuildInvalidatedProject +2: timerToBuildInvalidatedProject -After running Timeout callback:: count: 0 +After running Timeout callback:: count: 1 Output:: >> Screen clear [12:01:19 AM] File change detected. Starting incremental compilation... -[12:01:20 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/package.json' +[12:01:20 AM] Project 'packages/pkg2/tsconfig.json' is out of date because output 'packages/pkg2/build/tsconfig.tsbuildinfo' is older than input 'packages/pkg2/package.json' -[12:01:21 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:21 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... -======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. -Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. -Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'. -File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' does not have a 'types' field. -'package.json' has 'main' field 'build/other.js' that references '/user/username/projects/myproject/node_modules/pkg2/build/other.js'. -File name '/user/username/projects/myproject/node_modules/pkg2/build/other.js' has a '.js' extension - stripping it. -File '/user/username/projects/myproject/node_modules/pkg2/build/other.ts' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2/build/other.tsx' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2/build/other.d.ts' exists - use it as a name resolution result. -Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/other.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/other.d.ts'. -======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/other.d.ts' with Package ID 'pkg2/build/other.d.ts@1.0.0'. ======== -packages/pkg1/index.ts:1:15 - error TS2305: Module '"pkg2"' has no exported member 'TheNum'. - -1 import type { TheNum } from 'pkg2' -   ~~~~~~ - -[12:01:22 AM] Found 1 error. Watching for file changes. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, Declaration. +File name '/user/username/projects/myproject/packages/pkg2/const.js' has a '.js' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it as a name resolution result. +======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +[12:01:22 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] file changed its modified time + +Timeout callback:: count: 1 +3: timerToBuildInvalidatedProject *new* Program root files: [ - "/user/username/projects/myproject/packages/pkg1/index.ts" + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts", + "/user/username/projects/myproject/packages/pkg2/other.ts" ] Program options: { - "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", "watch": true, "traceResolution": true, - "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" } Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/packages/pkg2/build/other.d.ts -/user/username/projects/myproject/packages/pkg1/index.ts +/user/username/projects/myproject/packages/pkg2/const.ts +/user/username/projects/myproject/packages/pkg2/index.ts +/user/username/projects/myproject/packages/pkg2/other.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/packages/pkg2/build/other.d.ts -/user/username/projects/myproject/packages/pkg1/index.ts -Shape signatures in builder refreshed for:: -/user/username/projects/myproject/packages/pkg2/build/other.d.ts (used version) -/user/username/projects/myproject/packages/pkg1/index.ts (computed .d.ts) +No shapes updated in the builder:: exitCode:: ExitStatus.undefined @@ -418,80 +444,65 @@ Input:: Timeout callback:: count: 1 -2: timerToBuildInvalidatedProject *new* +3: timerToBuildInvalidatedProject *deleted* +5: timerToBuildInvalidatedProject *new* Before running Timeout callback:: count: 1 -2: timerToBuildInvalidatedProject +5: timerToBuildInvalidatedProject -After running Timeout callback:: count: 0 +After running Timeout callback:: count: 1 Output:: >> Screen clear -[12:01:26 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... -[12:01:27 AM] Project 'packages/pkg1/tsconfig.json' is out of date because output 'packages/pkg1/build/index.js' is older than input 'packages/pkg2/package.json' +[12:01:28 AM] Project 'packages/pkg2/tsconfig.json' is out of date because output 'packages/pkg2/build/tsconfig.tsbuildinfo' is older than input 'packages/pkg2/package.json' -[12:01:28 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:29 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... -======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== -Module resolution kind is not specified, using 'Node10'. -Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. -Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it. -Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'. -File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' does not have a 'types' field. -'package.json' has 'main' field 'build/index.js' that references '/user/username/projects/myproject/node_modules/pkg2/build/index.js'. -File name '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has a '.js' extension - stripping it. -File '/user/username/projects/myproject/node_modules/pkg2/build/index.ts' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does not exist. -File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. -======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== -======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.js', target file types: TypeScript, Declaration. -File name '/user/username/projects/myproject/packages/pkg2/build/const.js' has a '.js' extension - stripping it. -File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not exist. -File '/user/username/projects/myproject/packages/pkg2/build/const.tsx' does not exist. -File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - use it as a name resolution result. -======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.ts'. ======== -[12:01:33 AM] Found 0 errors. Watching for file changes. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file types: TypeScript, Declaration. +File name '/user/username/projects/myproject/packages/pkg2/const.js' has a '.js' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it as a name resolution result. +======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +[12:01:30 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... -//// [/user/username/projects/myproject/packages/pkg1/build/index.js] file written with same contents +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] file changed its modified time + +Timeout callback:: count: 1 +6: timerToBuildInvalidatedProject *new* Program root files: [ - "/user/username/projects/myproject/packages/pkg1/index.ts" + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts", + "/user/username/projects/myproject/packages/pkg2/other.ts" ] Program options: { - "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", "watch": true, "traceResolution": true, - "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" } Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/packages/pkg2/build/const.d.ts -/user/username/projects/myproject/packages/pkg2/build/index.d.ts -/user/username/projects/myproject/packages/pkg1/index.ts +/user/username/projects/myproject/packages/pkg2/const.ts +/user/username/projects/myproject/packages/pkg2/index.ts +/user/username/projects/myproject/packages/pkg2/other.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/packages/pkg2/build/const.d.ts -/user/username/projects/myproject/packages/pkg2/build/index.d.ts -/user/username/projects/myproject/packages/pkg1/index.ts -Shape signatures in builder refreshed for:: -/user/username/projects/myproject/packages/pkg2/build/const.d.ts (used version) -/user/username/projects/myproject/packages/pkg2/build/index.d.ts (used version) -/user/username/projects/myproject/packages/pkg1/index.ts (computed .d.ts) +No shapes updated in the builder:: exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js index 8ba1d242935b0..63e9ff560bad1 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js @@ -105,7 +105,7 @@ export {}; //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;","-12042713060-export const bar = 10;"],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,5,4,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12737086933-export const foo = 10;","impliedFormat":1},{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-12737086933-export const foo = 10;","impliedFormat":1},{"version":"-12042713060-export const bar = 10;","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,5,4,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -126,31 +126,50 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/file/index.d.ts": { + "original": { + "version": "-12737086933-export const foo = 10;", + "impliedFormat": 1 + }, "version": "-12737086933-export const foo = 10;", - "signature": "-12737086933-export const foo = 10;" + "signature": "-12737086933-export const foo = 10;", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-4708082513-import { foo } from \"file\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-4708082513-import { foo } from \"file\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../node_modules/@types/foo/index.d.ts": { + "original": { + "version": "-12737086933-export const foo = 10;", + "impliedFormat": 1 + }, "version": "-12737086933-export const foo = 10;", - "signature": "-12737086933-export const foo = 10;" + "signature": "-12737086933-export const foo = 10;", + "impliedFormat": "commonjs" }, "../node_modules/@types/bar/index.d.ts": { + "original": { + "version": "-12042713060-export const bar = 10;", + "impliedFormat": 1 + }, "version": "-12042713060-export const bar = 10;", - "signature": "-12042713060-export const bar = 10;" + "signature": "-12042713060-export const bar = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -177,7 +196,7 @@ export {}; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 996 + "size": 1122 } //// [/user/username/projects/myproject/project2/index.js] @@ -190,7 +209,7 @@ export {}; //// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./file.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;"],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,4,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./file.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12737086933-export const foo = 10;","impliedFormat":1},{"version":"-4708082513-import { foo } from \"file\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-12737086933-export const foo = 10;","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,4,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,27 +229,41 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.d.ts": { + "original": { + "version": "-12737086933-export const foo = 10;", + "impliedFormat": 1 + }, "version": "-12737086933-export const foo = 10;", - "signature": "-12737086933-export const foo = 10;" + "signature": "-12737086933-export const foo = 10;", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-4708082513-import { foo } from \"file\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-4708082513-import { foo } from \"file\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../node_modules/@types/foo/index.d.ts": { + "original": { + "version": "-12737086933-export const foo = 10;", + "impliedFormat": 1 + }, "version": "-12737086933-export const foo = 10;", - "signature": "-12737086933-export const foo = 10;" + "signature": "-12737086933-export const foo = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -256,17 +289,41 @@ export {}; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 897 + "size": 993 } PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types/bar/package.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types/foo/package.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/project1/node_modules/file/package.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/project1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/project2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/project1/index.ts: *new* @@ -380,7 +437,7 @@ var bar = 10; //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-12737086933-export const foo = 10;",{"version":"-7561100220-import { foo } from \"file\";const bar = 10;","signature":"-3531856636-export {};\n"},"-12737086933-export const foo = 10;","-12042713060-export const bar = 10;"],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,5,4,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./node_modules/file/index.d.ts","./index.ts","../node_modules/@types/foo/index.d.ts","../node_modules/@types/bar/index.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12737086933-export const foo = 10;","impliedFormat":1},{"version":"-7561100220-import { foo } from \"file\";const bar = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-12737086933-export const foo = 10;","impliedFormat":1},{"version":"-12042713060-export const bar = 10;","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,5,4,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -401,31 +458,50 @@ var bar = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/file/index.d.ts": { + "original": { + "version": "-12737086933-export const foo = 10;", + "impliedFormat": 1 + }, "version": "-12737086933-export const foo = 10;", - "signature": "-12737086933-export const foo = 10;" + "signature": "-12737086933-export const foo = 10;", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7561100220-import { foo } from \"file\";const bar = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-7561100220-import { foo } from \"file\";const bar = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../node_modules/@types/foo/index.d.ts": { + "original": { + "version": "-12737086933-export const foo = 10;", + "impliedFormat": 1 + }, "version": "-12737086933-export const foo = 10;", - "signature": "-12737086933-export const foo = 10;" + "signature": "-12737086933-export const foo = 10;", + "impliedFormat": "commonjs" }, "../node_modules/@types/bar/index.d.ts": { + "original": { + "version": "-12042713060-export const bar = 10;", + "impliedFormat": 1 + }, "version": "-12042713060-export const bar = 10;", - "signature": "-12042713060-export const bar = 10;" + "signature": "-12042713060-export const bar = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -452,7 +528,7 @@ var bar = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1011 + "size": 1137 } diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js index bfee34bf686d7..c5c37472d1817 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js @@ -47,7 +47,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"5381-","5381-"],"root":[2,3],"options":{"allowJs":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5381-","impliedFormat":1},{"version":"5381-","impliedFormat":1}],"root":[2,3],"options":{"allowJs":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -61,19 +61,31 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.js": { + "original": { + "version": "5381-", + "impliedFormat": 1 + }, "version": "5381-", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "5381-", + "impliedFormat": 1 + }, "version": "5381-", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" } }, "root": [ @@ -107,10 +119,26 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 738 + "size": 816 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/a.js: *new* {} @@ -205,7 +233,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-3042032780-declare const x: 10;\n","affectsGlobalScope":true},"5381-"],"root":[2,3],"options":{"allowJs":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.js","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-3042032780-declare const x: 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"5381-","impliedFormat":1}],"root":[2,3],"options":{"allowJs":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,25 +247,34 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.js": { "original": { "version": "5029505981-const x = 10;", "signature": "-3042032780-declare const x: 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-3042032780-declare const x: 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "5381-", + "impliedFormat": 1 + }, "version": "5381-", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" } }, "root": [ @@ -271,7 +308,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 844 + "size": 910 } diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js index ac3e81377d308..851ec438a2381 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js @@ -47,6 +47,22 @@ Output:: +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/a.js: *new* {} diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js index e54704157d486..1486aeb7fda85 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js @@ -64,7 +64,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false,"impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false,"impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false,"impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -85,31 +85,39 @@ Output:: "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, - "affectsGlobalScope": true + "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; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { "original": { "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-5014788164-export interface A {\n name: string;\n}\n" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": false + "signature": false, + "impliedFormat": 1 }, - "version": "9084524823-console.log(\"hi\");\nexport { }\n" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -142,10 +150,32 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1080 + "size": 1152 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/noEmitOnError/shared/types/db.ts: *new* {} @@ -271,7 +301,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -291,31 +321,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -348,7 +389,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1086 + "size": 1170 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -438,7 +479,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -458,31 +499,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -533,7 +585,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1245 + "size": 1329 } @@ -649,7 +701,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -669,31 +721,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -726,7 +789,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1077 + "size": 1161 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js index 02cdccf949274..989fcad71596a 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js @@ -64,6 +64,28 @@ Output:: +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/noEmitOnError/shared/types/db.ts: *new* {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js index fb966b72667bf..8f42cdc6ffbe3 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js @@ -137,7 +137,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,36 +152,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -213,7 +221,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -239,7 +247,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,27 +268,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -310,7 +332,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -331,7 +353,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,31 +379,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -415,10 +456,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js index ced6e361107c5..104cdec7a698a 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js @@ -154,7 +154,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -169,36 +169,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -230,7 +238,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -256,7 +264,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -277,27 +285,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -327,7 +349,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -348,7 +370,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -374,31 +396,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -432,10 +473,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -613,7 +676,7 @@ function someFn() { } //# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -634,27 +697,41 @@ function someFn() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -684,7 +761,7 @@ function someFn() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1422 + "size": 1518 } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time @@ -774,7 +851,7 @@ export declare function someFn(): void; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }","signature":"-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }","signature":"-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -795,27 +872,41 @@ export declare function someFn(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }", - "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n" + "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "impliedFormat": 1 }, "version": "-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }", - "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n" + "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -845,7 +936,7 @@ export declare function someFn(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1469 + "size": 1565 } @@ -867,7 +958,7 @@ Output:: //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -893,31 +984,50 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "impliedFormat": 1 + }, "version": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", - "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n" + "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -951,7 +1061,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1579 + "size": 1705 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js index be19ae75ed5f7..f0750df15ea76 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js @@ -77,7 +77,7 @@ export declare class myClass { //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,27 +91,33 @@ export declare class myClass { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { "original": { "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": 1 }, "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -136,10 +142,28 @@ export declare class myClass { "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1022 + "size": 1076 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/solution/app/fileWithError.ts: *new* {} @@ -210,7 +234,7 @@ Output:: //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","signature":"7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected."},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"emitSignatures":[[2,"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"]],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","signature":"7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"emitSignatures":[[2,"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"]],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -224,27 +248,33 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { "original": { "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected." + "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.", + "impliedFormat": 1 }, "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected." + "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -281,7 +311,7 @@ Output:: "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1306 + "size": 1360 } @@ -337,7 +367,7 @@ Output:: //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","signature":"7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected."},{"version":"-10959532701-export class myClass2 { }","signature":"-8459626297-export declare class myClass2 {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[[2,"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"],[3,"-7432826827-export declare class myClass {\n}\n"]],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","signature":"7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.","impliedFormat":1},{"version":"-10959532701-export class myClass2 { }","signature":"-8459626297-export declare class myClass2 {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[[2,"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"],[3,"-7432826827-export declare class myClass {\n}\n"]],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -351,27 +381,33 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { "original": { "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected." + "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.", + "impliedFormat": 1 }, "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected." + "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-10959532701-export class myClass2 { }", - "signature": "-8459626297-export declare class myClass2 {\n}\n" + "signature": "-8459626297-export declare class myClass2 {\n}\n", + "impliedFormat": 1 }, "version": "-10959532701-export class myClass2 { }", - "signature": "-8459626297-export declare class myClass2 {\n}\n" + "signature": "-8459626297-export declare class myClass2 {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -416,7 +452,7 @@ Output:: "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1364 + "size": 1418 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js index 01505c64ebcaf..c645617f819ad 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js @@ -77,7 +77,7 @@ export declare class myClass { //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,27 +91,33 @@ export declare class myClass { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { "original": { "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": 1 }, "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -136,10 +142,28 @@ export declare class myClass { "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1022 + "size": 1076 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/solution/app/fileWithError.ts: *new* {} @@ -210,7 +234,7 @@ Output:: //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","signature":"7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected."},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"emitSignatures":[[2,"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"]],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","signature":"7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"emitSignatures":[[2,"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"]],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -224,27 +248,33 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { "original": { "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected." + "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.", + "impliedFormat": 1 }, "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected." + "signature": "7927555551-export declare var myClassWithError: {\n new (): {\n tags(): void;\n p: number;\n };\n};\n(11,16)Error4094: Property 'p' of exported class expression may not be private or protected.", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -281,7 +311,7 @@ Output:: "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1306 + "size": 1360 } @@ -336,7 +366,7 @@ Output:: //// [/user/username/projects/solution/app/fileWithError.js] file written with same contents //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -350,27 +380,33 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { "original": { "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": 1 }, "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -395,7 +431,7 @@ Output:: "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1022 + "size": 1076 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js index bfa24c1198571..81ffc23c775b1 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js @@ -45,7 +45,7 @@ Output:: //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };",{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -59,23 +59,32 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { + "original": { + "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", + "impliedFormat": 1 + }, "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };" + "signature": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -113,10 +122,28 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 915 + "size": 981 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/solution/app/fileWithError.ts: *new* {} @@ -184,7 +211,7 @@ Output:: //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };",{"version":"-10959532701-export class myClass2 { }","signature":"-8459626297-export declare class myClass2 {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","impliedFormat":1},{"version":"-10959532701-export class myClass2 { }","signature":"-8459626297-export declare class myClass2 {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -198,23 +225,32 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { + "original": { + "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", + "impliedFormat": 1 + }, "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };" + "signature": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-10959532701-export class myClass2 { }", - "signature": "-8459626297-export declare class myClass2 {\n}\n" + "signature": "-8459626297-export declare class myClass2 {\n}\n", + "impliedFormat": 1 }, "version": "-10959532701-export class myClass2 { }", - "signature": "-8459626297-export declare class myClass2 {\n}\n" + "signature": "-8459626297-export declare class myClass2 {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -252,7 +288,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 917 + "size": 983 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js index 6c41d10cb245d..71ccaa27aa633 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js @@ -45,7 +45,7 @@ Output:: //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };",{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -59,23 +59,32 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { + "original": { + "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", + "impliedFormat": 1 + }, "version": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", - "signature": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };" + "signature": "-8103865863-export var myClassWithError = class {\n tags() { }\n private p = 12\n };", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -113,10 +122,28 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 915 + "size": 981 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/solution/app/fileWithError.ts: *new* {} @@ -182,7 +209,7 @@ Output:: //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n"},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./filewitherror.ts","./filewithouterror.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8106435186-export var myClassWithError = class {\n tags() { }\n \n };","signature":"6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n","impliedFormat":1},{"version":"-11785903855-export class myClass { }","signature":"-7432826827-export declare class myClass {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./fileWithoutError.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -196,27 +223,33 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./filewitherror.ts": { "original": { "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": 1 }, "version": "-8106435186-export var myClassWithError = class {\n tags() { }\n \n };", - "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n" + "signature": "6892461904-export declare var myClassWithError: {\n new (): {\n tags(): void;\n };\n};\n", + "impliedFormat": "commonjs" }, "./filewithouterror.ts": { "original": { "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": 1 }, "version": "-11785903855-export class myClass { }", - "signature": "-7432826827-export declare class myClass {\n}\n" + "signature": "-7432826827-export declare class myClass {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -241,7 +274,7 @@ Output:: "latestChangedDtsFile": "./fileWithoutError.d.ts" }, "version": "FakeTSVersion", - "size": 1022 + "size": 1076 } //// [/user/username/projects/solution/app/fileWithError.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js index f5b5cdbd473db..4766bf98d17dd 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js @@ -137,7 +137,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,36 +152,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -213,7 +221,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -239,7 +247,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,27 +268,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -310,7 +332,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -331,7 +353,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,31 +379,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -415,10 +456,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -576,7 +639,7 @@ Output:: //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -597,27 +660,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -665,7 +742,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1590 + "size": 1686 } @@ -734,7 +811,7 @@ Output:: //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -749,36 +826,44 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -828,7 +913,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1562 + "size": 1634 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js index e792fbd604004..72cb3f2dc849b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js @@ -136,7 +136,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -151,36 +151,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -212,7 +220,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -238,7 +246,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,27 +267,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -309,7 +331,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -330,7 +352,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -356,31 +378,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -414,10 +455,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -577,7 +640,7 @@ Output:: //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -598,27 +661,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -666,7 +743,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1590 + "size": 1686 } @@ -735,7 +812,7 @@ Output:: //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -750,36 +827,44 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -829,7 +914,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1562 + "size": 1634 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js index 6f20d46bae87b..3c5a3225f71da 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js @@ -136,7 +136,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -151,36 +151,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -210,10 +218,28 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1322 + "size": 1394 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -294,7 +320,7 @@ Output:: //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -310,44 +336,54 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../file3.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" }, "../index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -379,7 +415,7 @@ Output:: "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1533 } //// [/user/username/projects/sample1/core/outDir/file3.js] @@ -394,6 +430,24 @@ export declare const y = 10; +PolledWatches:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js index 68c04b356e295..22007210c0f4e 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js @@ -144,7 +144,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -159,36 +159,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -220,10 +228,28 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -306,7 +332,7 @@ Output:: //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -322,44 +348,54 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./file3.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -393,7 +429,7 @@ Output:: "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1490 + "size": 1580 } //// [/user/username/projects/sample1/core/file3.js] @@ -411,6 +447,24 @@ export declare const y = 10; //# sourceMappingURL=file3.d.ts.map +PolledWatches:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js index 9c434d784765b..8db0ce6b29277 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js @@ -33,7 +33,7 @@ Output:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/main.js] "use strict"; @@ -53,15 +53,22 @@ exports.x = 10; "../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -77,10 +84,22 @@ exports.x = 10; ] }, "version": "FakeTSVersion", - "size": 602 + "size": 650 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/src/package.json: *new* + {"pollingInterval":2000} +/src/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /src/project/main.ts: *new* {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js index 43d246c089a37..f90148bf328dc 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js @@ -137,7 +137,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,36 +152,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -213,7 +221,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -239,7 +247,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,27 +268,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -310,10 +332,30 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js index 25754ac3f308e..6ad622e8e575d 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js @@ -123,7 +123,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -138,36 +138,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -199,13 +207,29 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} /user/username/projects/sample1/logic/tsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* @@ -283,6 +307,24 @@ Output:: sysLog:: /user/username/projects/sample1/logic/tsconfig.json:: Changing watcher to PresentFileSystemEntryWatcher +PolledWatches:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: + {"pollingInterval":2000} + PolledWatches *deleted*:: /user/username/projects/sample1/logic/tsconfig.json: {"pollingInterval":2000} @@ -343,7 +385,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -364,27 +406,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -414,10 +470,28 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } +PolledWatches:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: {} @@ -510,7 +584,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -536,31 +610,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -594,7 +687,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js index d663845bbdeb0..f4fc25dfa512e 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js @@ -77,7 +77,7 @@ export {}; //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -90,19 +90,23 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./library.ts": { "original": { "version": "5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n" + "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedFormat": 1 }, "version": "5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n" + "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -122,7 +126,7 @@ export {}; "latestChangedDtsFile": "./library.d.ts" }, "version": "FakeTSVersion", - "size": 980 + "size": 1016 } //// [/user/username/projects/sample1/App/app.js] @@ -133,6 +137,26 @@ var library_1 = require("../Library/library"); +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/App/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/Library/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/App/app.ts: *new* {} @@ -246,7 +270,7 @@ export {}; //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-9741349880-\ninterface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}","signature":"1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9741349880-\ninterface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}","signature":"1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,19 +283,23 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./library.ts": { "original": { "version": "-9741349880-\ninterface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}", - "signature": "1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n" + "signature": "1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedFormat": 1 }, "version": "-9741349880-\ninterface SomeObject\n{\n message2: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message2: \"new Object\"\n };\n}", - "signature": "1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n" + "signature": "1956297931-interface SomeObject {\n message2: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -291,7 +319,7 @@ export {}; "latestChangedDtsFile": "./library.d.ts" }, "version": "FakeTSVersion", - "size": 982 + "size": 1018 } @@ -412,7 +440,7 @@ export {}; //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./library.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}","signature":"-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./library.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/Library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -425,19 +453,23 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./library.ts": { "original": { "version": "5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n" + "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedFormat": 1 }, "version": "5256469508-\ninterface SomeObject\n{\n message: string;\n}\n\nexport function createSomeObject(): SomeObject\n{\n return {\n message: \"new Object\"\n };\n}", - "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n" + "signature": "-18933614215-interface SomeObject {\n message: string;\n}\nexport declare function createSomeObject(): SomeObject;\nexport {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -457,7 +489,7 @@ export {}; "latestChangedDtsFile": "./library.d.ts" }, "version": "FakeTSVersion", - "size": 980 + "size": 1016 } 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 new file mode 100644 index 0000000000000..6a63feb913302 --- /dev/null +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js @@ -0,0 +1,628 @@ +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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"5450201652-function foo() { return 10; }","impliedFormat":1}],"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": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "5450201652-function foo() { return 10; }", + "impliedFormat": 1 + }, + "version": "5450201652-function foo() { return 10; }", + "impliedFormat": "commonjs" + } + }, + "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": 1038 +} + +//// [/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; + +====================================================================== + + +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} + +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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }","impliedFormat":1}],"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": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }", + "impliedFormat": 1 + }, + "version": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }", + "impliedFormat": "commonjs" + } + }, + "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": 1182 +} + +//// [/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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }","impliedFormat":1}],"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": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }", + "impliedFormat": 1 + }, + "version": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }", + "impliedFormat": "commonjs" + } + }, + "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": 1184 +} + +//// [/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-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js index b0722cbae5d51..e451a10885684 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -135,7 +135,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,36 +150,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -209,7 +217,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1321 + "size": 1393 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -235,7 +243,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -256,27 +264,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -306,7 +328,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -327,7 +349,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -353,31 +375,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -411,10 +452,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -556,7 +619,7 @@ Output:: //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -572,44 +635,54 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./newfile.ts": { "original": { "version": "-16320201030-export const newFileConst = 30;", - "signature": "-22941483372-export declare const newFileConst = 30;\n" + "signature": "-22941483372-export declare const newFileConst = 30;\n", + "impliedFormat": 1 }, "version": "-16320201030-export const newFileConst = 30;", - "signature": "-22941483372-export declare const newFileConst = 30;\n" + "signature": "-22941483372-export declare const newFileConst = 30;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -641,7 +714,7 @@ Output:: "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1468 + "size": 1558 } //// [/user/username/projects/sample1/core/newfile.js] @@ -656,6 +729,28 @@ export declare const newFileConst = 30; +PolledWatches:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: {} @@ -801,7 +896,7 @@ Output:: //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -817,44 +912,54 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./newfile.ts": { "original": { "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", - "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 }, "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", - "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -886,7 +991,7 @@ Output:: "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1534 + "size": 1624 } //// [/user/username/projects/sample1/core/newfile.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js index 9a0106ad07b70..d50e33dd3bcf7 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js @@ -135,7 +135,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,36 +150,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -209,7 +217,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1321 + "size": 1393 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -235,7 +243,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -256,27 +264,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -306,7 +328,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -327,7 +349,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -353,31 +375,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -411,10 +452,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -585,7 +648,7 @@ export declare class someClass { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -600,36 +663,44 @@ export declare class someClass { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -659,7 +730,7 @@ export declare class someClass { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1386 + "size": 1458 } @@ -709,7 +780,7 @@ Output:: //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -730,27 +801,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -780,12 +865,12 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1435 + "size": 1531 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -811,31 +896,50 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -869,7 +973,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1575 + "size": 1701 } @@ -971,7 +1075,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -986,36 +1090,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1045,7 +1157,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1321 + "size": 1393 } @@ -1095,7 +1207,7 @@ Output:: //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1116,27 +1228,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1166,12 +1292,12 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1197,31 +1323,50 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1255,7 +1400,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } @@ -1375,7 +1520,7 @@ export declare class someClass2 { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1390,36 +1535,44 @@ export declare class someClass2 { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 }, "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1449,7 +1602,7 @@ export declare class someClass2 { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1453 + "size": 1525 } @@ -1499,7 +1652,7 @@ Output:: //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1520,27 +1673,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 + }, "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1570,12 +1737,12 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1473 + "size": 1569 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1601,31 +1768,50 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 + }, "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1659,7 +1845,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1613 + "size": 1739 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js index 1584701a36f0e..931f124515bf9 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js @@ -135,7 +135,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,36 +150,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -209,7 +217,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1321 + "size": 1393 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -235,7 +243,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -256,27 +264,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -306,7 +328,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -327,7 +349,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -353,31 +375,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -411,10 +452,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -574,7 +637,7 @@ function foo() { } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -589,36 +652,44 @@ function foo() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -648,7 +719,7 @@ function foo() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1340 + "size": 1412 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time 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 index 168d3989705c0..c8515e93c46f1 100644 --- 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 @@ -61,7 +61,7 @@ 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"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"5450201652-function foo() { return 10; }","impliedFormat":1}],"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] { @@ -71,8 +71,22 @@ declare function foo(): number; "./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; }" + "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "5450201652-function foo() { return 10; }", + "impliedFormat": 1 + }, + "version": "5450201652-function foo() { return 10; }", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -89,7 +103,7 @@ declare function foo(): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 697 + "size": 757 } //// [/user/username/projects/sample1/logic/index.js] @@ -102,7 +116,7 @@ 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"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"517738360-declare function foo(): number;\n","impliedFormat":1},{"version":"5542925109-function bar() { return foo() + 1 };","impliedFormat":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] { @@ -113,9 +127,30 @@ declare function bar(): number; "./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 };" + "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "../core/index.d.ts": { + "original": { + "version": "517738360-declare function foo(): number;\n", + "impliedFormat": 1 + }, + "version": "517738360-declare function foo(): number;\n", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "5542925109-function bar() { return foo() + 1 };", + "impliedFormat": 1 + }, + "version": "5542925109-function bar() { return foo() + 1 };", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -132,10 +167,30 @@ declare function bar(): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 772 + "size": 862 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/index.ts: *new* {} @@ -225,7 +280,7 @@ 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"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }","impliedFormat":1}],"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] { @@ -235,8 +290,22 @@ declare function myFunc(): number; "./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; }" + "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }", + "impliedFormat": 1 + }, + "version": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -253,7 +322,7 @@ declare function myFunc(): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 769 + "size": 829 } @@ -297,7 +366,7 @@ Output:: //// [/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"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","impliedFormat":1},{"version":"5542925109-function bar() { return foo() + 1 };","impliedFormat":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] { @@ -308,9 +377,30 @@ Output:: "./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 };" + "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "../core/index.d.ts": { + "original": { + "version": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", + "impliedFormat": 1 + }, + "version": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "5542925109-function bar() { return foo() + 1 };", + "impliedFormat": 1 + }, + "version": "5542925109-function bar() { return foo() + 1 };", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -327,7 +417,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 809 + "size": 899 } @@ -383,7 +473,7 @@ 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"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }","impliedFormat":1}],"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] { @@ -393,8 +483,22 @@ function myFunc() { return 100; } "./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; }" + "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./index.ts": { + "original": { + "version": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }", + "impliedFormat": 1 + }, + "version": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -411,7 +515,7 @@ function myFunc() { return 100; } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 770 + "size": 830 } //// [/user/username/projects/sample1/logic/index.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 1e1713bc46eda..77f5152acd12d 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -137,7 +137,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,36 +152,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -213,7 +221,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -239,7 +247,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,27 +268,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -310,7 +332,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -331,7 +353,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,31 +379,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -415,10 +456,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -562,7 +625,7 @@ Output:: //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -578,44 +641,54 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./newfile.ts": { "original": { "version": "-16320201030-export const newFileConst = 30;", - "signature": "-22941483372-export declare const newFileConst = 30;\n" + "signature": "-22941483372-export declare const newFileConst = 30;\n", + "impliedFormat": 1 }, "version": "-16320201030-export const newFileConst = 30;", - "signature": "-22941483372-export declare const newFileConst = 30;\n" + "signature": "-22941483372-export declare const newFileConst = 30;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -649,7 +722,7 @@ Output:: "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1517 + "size": 1607 } //// [/user/username/projects/sample1/core/newfile.js] @@ -667,6 +740,28 @@ export declare const newFileConst = 30; //# sourceMappingURL=newfile.d.ts.map +PolledWatches:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: {} @@ -814,7 +909,7 @@ Output:: //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -830,44 +925,54 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./newfile.ts": { "original": { "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", - "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 }, "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", - "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -901,7 +1006,7 @@ Output:: "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1583 + "size": 1673 } //// [/user/username/projects/sample1/core/newfile.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js index 36e49f993fd9b..7ce630a5a981d 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js @@ -137,7 +137,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,36 +152,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -213,7 +221,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -239,7 +247,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,27 +268,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -310,7 +332,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -331,7 +353,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,31 +379,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -415,10 +456,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -594,7 +657,7 @@ export declare class someClass { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -609,36 +672,44 @@ export declare class someClass { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 }, "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -670,7 +741,7 @@ export declare class someClass { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1435 + "size": 1507 } @@ -722,7 +793,7 @@ Output:: //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -743,27 +814,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -793,12 +878,12 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1435 + "size": 1531 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -824,31 +909,50 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": 1 + }, "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", - "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -882,7 +986,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1575 + "size": 1701 } @@ -987,7 +1091,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1002,36 +1106,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1063,7 +1175,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } @@ -1115,7 +1227,7 @@ Output:: //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1136,27 +1248,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1186,12 +1312,12 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1217,31 +1343,50 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1275,7 +1420,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } @@ -1398,7 +1543,7 @@ export declare class someClass2 { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1413,36 +1558,44 @@ export declare class someClass2 { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 }, "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1474,7 +1627,7 @@ export declare class someClass2 { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1502 + "size": 1574 } @@ -1526,7 +1679,7 @@ Output:: //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1547,27 +1700,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 + }, "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1597,12 +1764,12 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1473 + "size": 1569 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1628,31 +1795,50 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": 1 + }, "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", - "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1686,7 +1872,7 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1613 + "size": 1739 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js index 32e37b6b4c6c9..1d542e7f3aff5 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js @@ -137,7 +137,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -152,36 +152,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -213,7 +221,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -239,7 +247,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,27 +268,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -310,7 +332,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } //// [/user/username/projects/sample1/tests/index.js] @@ -331,7 +353,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,31 +379,50 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "../logic/index.d.ts": { + "original": { + "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 + }, "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -415,10 +456,32 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1538 + "size": 1664 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/sample1/core/anotherModule.ts: *new* {} @@ -581,7 +644,7 @@ function foo() { } //// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -596,36 +659,44 @@ function foo() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -657,7 +728,7 @@ function foo() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1389 + "size": 1461 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js index 16d689e7c6792..512fa1b1072ae 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js @@ -114,7 +114,7 @@ declare let y: number; //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -128,31 +128,37 @@ declare let y: number; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile1.ts": { "original": { "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile2.ts": { "original": { "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -178,7 +184,7 @@ declare let y: number; "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 899 + "size": 953 } //// [/a/b/other.js] @@ -191,7 +197,7 @@ declare let z: number; //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -204,21 +210,25 @@ declare let z: number; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -239,10 +249,20 @@ declare let z: number; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } +PolledWatches:: +/a/b/package.json: *new* + {"pollingInterval":2000} +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/b/alpha.tsconfig.json: *new* {} @@ -341,6 +361,16 @@ Output:: +PolledWatches:: +/a/b/package.json: + {"pollingInterval":2000} +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} + FsWatches:: /a/b/alpha.tsconfig.json: {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js index ab984f72ab9c6..bfcc4bf39245c 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js @@ -39,6 +39,22 @@ Output:: +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/index.ts: *new* {} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js index e217533734dcf..f4a3482bbe474 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js @@ -136,7 +136,7 @@ declare let y: number; //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -150,31 +150,37 @@ declare let y: number; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile1.ts": { "original": { "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile2.ts": { "original": { "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -199,7 +205,7 @@ declare let y: number; "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 885 + "size": 939 } //// [/a/b/other.js] @@ -211,7 +217,7 @@ declare let z: number; //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -224,21 +230,25 @@ declare let z: number; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -258,7 +268,7 @@ declare let z: number; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 742 + "size": 778 } //// [/a/b/other2.js] @@ -266,6 +276,16 @@ var k = 0; +PolledWatches:: +/a/b/package.json: *new* + {"pollingInterval":2000} +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/b/alpha.tsconfig.json: *new* {} @@ -402,7 +422,7 @@ var y = 1; //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -416,31 +436,37 @@ var y = 1; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile1.ts": { "original": { "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile2.ts": { "original": { "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -466,7 +492,7 @@ var y = 1; "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 899 + "size": 953 } @@ -522,7 +548,7 @@ var z = 0; //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -535,21 +561,25 @@ var z = 0; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -570,7 +600,7 @@ var z = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } @@ -633,7 +663,7 @@ var z = 0; //// [/a/b/project2.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"strict":false},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2874288940-let z = 0;","signature":"-1272633924-declare let z: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true,"strict":false},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project2.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -646,21 +676,25 @@ var z = 0; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2874288940-let z = 0;", "signature": "-1272633924-declare let z: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -681,7 +715,7 @@ var z = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 757 + "size": 793 } @@ -749,6 +783,16 @@ var k = 0; +PolledWatches:: +/a/b/package.json: + {"pollingInterval":2000} +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} + FsWatches:: /a/b/alpha.tsconfig.json: {} @@ -849,7 +893,7 @@ var y = 1; //// [/a/b/project1.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./commonfile1.ts","./commonfile2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2167136208-let x = 1","signature":"2842409786-declare let x: number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2168322129-let y = 1","signature":"784887931-declare let y: number;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,3,1],"latestChangedDtsFile":"./commonFile2.d.ts"},"version":"FakeTSVersion"} //// [/a/b/project1.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -863,31 +907,37 @@ var y = 1; "../lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile1.ts": { "original": { "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2167136208-let x = 1", "signature": "2842409786-declare let x: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./commonfile2.ts": { "original": { "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2168322129-let y = 1", "signature": "784887931-declare let y: number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -912,7 +962,7 @@ var y = 1; "latestChangedDtsFile": "./commonFile2.d.ts" }, "version": "FakeTSVersion", - "size": 885 + "size": 939 } @@ -1101,6 +1151,16 @@ Output:: //// [/a/b/other2.js] file changed its modified time +PolledWatches:: +/a/b/package.json: + {"pollingInterval":2000} +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} + FsWatches:: /a/b/alpha.tsconfig.json: {} diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js index c9bd842e246c0..6fd51a6623b2a 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js @@ -569,7 +569,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -582,19 +582,23 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -614,7 +618,7 @@ export declare const pkg0 = 0; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -629,7 +633,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -642,19 +646,23 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": 1 }, "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -674,7 +682,7 @@ export declare const pkg1 = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -689,7 +697,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -702,19 +710,23 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": 1 }, "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -734,7 +746,7 @@ export declare const pkg2 = 2; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg3/index.js] @@ -749,7 +761,7 @@ export declare const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -762,19 +774,23 @@ export declare const pkg3 = 3; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14375483634-export const pkg3 = 3;", - "signature": "-5242392728-export declare const pkg3 = 3;\n" + "signature": "-5242392728-export declare const pkg3 = 3;\n", + "impliedFormat": 1 }, "version": "-14375483634-export const pkg3 = 3;", - "signature": "-5242392728-export declare const pkg3 = 3;\n" + "signature": "-5242392728-export declare const pkg3 = 3;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -794,7 +810,7 @@ export declare const pkg3 = 3; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg4/index.js] @@ -809,7 +825,7 @@ export declare const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -822,19 +838,23 @@ export declare const pkg4 = 4; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14336348208-export const pkg4 = 4;", - "signature": "-3950923670-export declare const pkg4 = 4;\n" + "signature": "-3950923670-export declare const pkg4 = 4;\n", + "impliedFormat": 1 }, "version": "-14336348208-export const pkg4 = 4;", - "signature": "-3950923670-export declare const pkg4 = 4;\n" + "signature": "-3950923670-export declare const pkg4 = 4;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -854,7 +874,7 @@ export declare const pkg4 = 4; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg5/index.js] @@ -869,7 +889,7 @@ export declare const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -882,19 +902,23 @@ export declare const pkg5 = 5; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14297212782-export const pkg5 = 5;", - "signature": "-2659454612-export declare const pkg5 = 5;\n" + "signature": "-2659454612-export declare const pkg5 = 5;\n", + "impliedFormat": 1 }, "version": "-14297212782-export const pkg5 = 5;", - "signature": "-2659454612-export declare const pkg5 = 5;\n" + "signature": "-2659454612-export declare const pkg5 = 5;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -914,7 +938,7 @@ export declare const pkg5 = 5; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg6/index.js] @@ -929,7 +953,7 @@ export declare const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -942,19 +966,23 @@ export declare const pkg6 = 6; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14258077356-export const pkg6 = 6;", - "signature": "-5662952850-export declare const pkg6 = 6;\n" + "signature": "-5662952850-export declare const pkg6 = 6;\n", + "impliedFormat": 1 }, "version": "-14258077356-export const pkg6 = 6;", - "signature": "-5662952850-export declare const pkg6 = 6;\n" + "signature": "-5662952850-export declare const pkg6 = 6;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -974,7 +1002,7 @@ export declare const pkg6 = 6; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg7/index.js] @@ -989,7 +1017,7 @@ export declare const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1002,19 +1030,23 @@ export declare const pkg7 = 7; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14218941930-export const pkg7 = 7;", - "signature": "-4371483792-export declare const pkg7 = 7;\n" + "signature": "-4371483792-export declare const pkg7 = 7;\n", + "impliedFormat": 1 }, "version": "-14218941930-export const pkg7 = 7;", - "signature": "-4371483792-export declare const pkg7 = 7;\n" + "signature": "-4371483792-export declare const pkg7 = 7;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1034,7 +1066,7 @@ export declare const pkg7 = 7; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg8/index.js] @@ -1049,7 +1081,7 @@ export declare const pkg8 = 8; //// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14179806504-export const pkg8 = 8;","signature":"-3080014734-export declare const pkg8 = 8;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14179806504-export const pkg8 = 8;","signature":"-3080014734-export declare const pkg8 = 8;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg8/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1062,19 +1094,23 @@ export declare const pkg8 = 8; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14179806504-export const pkg8 = 8;", - "signature": "-3080014734-export declare const pkg8 = 8;\n" + "signature": "-3080014734-export declare const pkg8 = 8;\n", + "impliedFormat": 1 }, "version": "-14179806504-export const pkg8 = 8;", - "signature": "-3080014734-export declare const pkg8 = 8;\n" + "signature": "-3080014734-export declare const pkg8 = 8;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1094,7 +1130,7 @@ export declare const pkg8 = 8; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg9/index.js] @@ -1109,7 +1145,7 @@ export declare const pkg9 = 9; //// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14140671078-export const pkg9 = 9;","signature":"-6083512972-export declare const pkg9 = 9;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14140671078-export const pkg9 = 9;","signature":"-6083512972-export declare const pkg9 = 9;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg9/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1122,19 +1158,23 @@ export declare const pkg9 = 9; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14140671078-export const pkg9 = 9;", - "signature": "-6083512972-export declare const pkg9 = 9;\n" + "signature": "-6083512972-export declare const pkg9 = 9;\n", + "impliedFormat": 1 }, "version": "-14140671078-export const pkg9 = 9;", - "signature": "-6083512972-export declare const pkg9 = 9;\n" + "signature": "-6083512972-export declare const pkg9 = 9;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1154,7 +1194,7 @@ export declare const pkg9 = 9; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg10/index.js] @@ -1169,7 +1209,7 @@ export declare const pkg10 = 10; //// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-9585933846-export const pkg10 = 10;","signature":"-3553269308-export declare const pkg10 = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9585933846-export const pkg10 = 10;","signature":"-3553269308-export declare const pkg10 = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg10/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1182,19 +1222,23 @@ export declare const pkg10 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9585933846-export const pkg10 = 10;", - "signature": "-3553269308-export declare const pkg10 = 10;\n" + "signature": "-3553269308-export declare const pkg10 = 10;\n", + "impliedFormat": 1 }, "version": "-9585933846-export const pkg10 = 10;", - "signature": "-3553269308-export declare const pkg10 = 10;\n" + "signature": "-3553269308-export declare const pkg10 = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1214,7 +1258,7 @@ export declare const pkg10 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 755 + "size": 791 } //// [/user/username/projects/myproject/pkg11/index.js] @@ -1229,7 +1273,7 @@ export declare const pkg11 = 11; //// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8294465844-export const pkg11 = 11;","signature":"410469094-export declare const pkg11 = 11;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8294465844-export const pkg11 = 11;","signature":"410469094-export declare const pkg11 = 11;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg11/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1242,19 +1286,23 @@ export declare const pkg11 = 11; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-8294465844-export const pkg11 = 11;", - "signature": "410469094-export declare const pkg11 = 11;\n" + "signature": "410469094-export declare const pkg11 = 11;\n", + "impliedFormat": 1 }, "version": "-8294465844-export const pkg11 = 11;", - "signature": "410469094-export declare const pkg11 = 11;\n" + "signature": "410469094-export declare const pkg11 = 11;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1274,7 +1322,7 @@ export declare const pkg11 = 11; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 753 + "size": 789 } //// [/user/username/projects/myproject/pkg12/index.js] @@ -1289,7 +1337,7 @@ export declare const pkg12 = 12; //// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7002997842-export const pkg12 = 12;","signature":"-4215727096-export declare const pkg12 = 12;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7002997842-export const pkg12 = 12;","signature":"-4215727096-export declare const pkg12 = 12;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg12/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1302,19 +1350,23 @@ export declare const pkg12 = 12; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7002997842-export const pkg12 = 12;", - "signature": "-4215727096-export declare const pkg12 = 12;\n" + "signature": "-4215727096-export declare const pkg12 = 12;\n", + "impliedFormat": 1 }, "version": "-7002997842-export const pkg12 = 12;", - "signature": "-4215727096-export declare const pkg12 = 12;\n" + "signature": "-4215727096-export declare const pkg12 = 12;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1334,7 +1386,7 @@ export declare const pkg12 = 12; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 755 + "size": 791 } //// [/user/username/projects/myproject/pkg13/index.js] @@ -1349,7 +1401,7 @@ export declare const pkg13 = 13; //// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10006497136-export const pkg13 = 13;","signature":"-4546955990-export declare const pkg13 = 13;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10006497136-export const pkg13 = 13;","signature":"-4546955990-export declare const pkg13 = 13;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg13/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1362,19 +1414,23 @@ export declare const pkg13 = 13; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10006497136-export const pkg13 = 13;", - "signature": "-4546955990-export declare const pkg13 = 13;\n" + "signature": "-4546955990-export declare const pkg13 = 13;\n", + "impliedFormat": 1 }, "version": "-10006497136-export const pkg13 = 13;", - "signature": "-4546955990-export declare const pkg13 = 13;\n" + "signature": "-4546955990-export declare const pkg13 = 13;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1394,7 +1450,7 @@ export declare const pkg13 = 13; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } //// [/user/username/projects/myproject/pkg14/index.js] @@ -1409,7 +1465,7 @@ export declare const pkg14 = 14; //// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8715029134-export const pkg14 = 14;","signature":"-583217588-export declare const pkg14 = 14;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8715029134-export const pkg14 = 14;","signature":"-583217588-export declare const pkg14 = 14;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg14/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1422,19 +1478,23 @@ export declare const pkg14 = 14; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-8715029134-export const pkg14 = 14;", - "signature": "-583217588-export declare const pkg14 = 14;\n" + "signature": "-583217588-export declare const pkg14 = 14;\n", + "impliedFormat": 1 }, "version": "-8715029134-export const pkg14 = 14;", - "signature": "-583217588-export declare const pkg14 = 14;\n" + "signature": "-583217588-export declare const pkg14 = 14;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1454,7 +1514,7 @@ export declare const pkg14 = 14; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 754 + "size": 790 } //// [/user/username/projects/myproject/pkg15/index.js] @@ -1469,7 +1529,7 @@ export declare const pkg15 = 15; //// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7423561132-export const pkg15 = 15;","signature":"-5209413778-export declare const pkg15 = 15;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7423561132-export const pkg15 = 15;","signature":"-5209413778-export declare const pkg15 = 15;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg15/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1482,19 +1542,23 @@ export declare const pkg15 = 15; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7423561132-export const pkg15 = 15;", - "signature": "-5209413778-export declare const pkg15 = 15;\n" + "signature": "-5209413778-export declare const pkg15 = 15;\n", + "impliedFormat": 1 }, "version": "-7423561132-export const pkg15 = 15;", - "signature": "-5209413778-export declare const pkg15 = 15;\n" + "signature": "-5209413778-export declare const pkg15 = 15;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1514,7 +1578,7 @@ export declare const pkg15 = 15; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 755 + "size": 791 } //// [/user/username/projects/myproject/pkg16/index.js] @@ -1529,7 +1593,7 @@ export declare const pkg16 = 16; //// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-6132093130-export const pkg16 = 16;","signature":"-1245675376-export declare const pkg16 = 16;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6132093130-export const pkg16 = 16;","signature":"-1245675376-export declare const pkg16 = 16;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg16/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1542,19 +1606,23 @@ export declare const pkg16 = 16; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6132093130-export const pkg16 = 16;", - "signature": "-1245675376-export declare const pkg16 = 16;\n" + "signature": "-1245675376-export declare const pkg16 = 16;\n", + "impliedFormat": 1 }, "version": "-6132093130-export const pkg16 = 16;", - "signature": "-1245675376-export declare const pkg16 = 16;\n" + "signature": "-1245675376-export declare const pkg16 = 16;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1574,7 +1642,7 @@ export declare const pkg16 = 16; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 755 + "size": 791 } //// [/user/username/projects/myproject/pkg17/index.js] @@ -1589,7 +1657,7 @@ export declare const pkg17 = 17; //// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-17725527016-export const pkg17 = 17;","signature":"-1576904270-export declare const pkg17 = 17;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17725527016-export const pkg17 = 17;","signature":"-1576904270-export declare const pkg17 = 17;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg17/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1602,19 +1670,23 @@ export declare const pkg17 = 17; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-17725527016-export const pkg17 = 17;", - "signature": "-1576904270-export declare const pkg17 = 17;\n" + "signature": "-1576904270-export declare const pkg17 = 17;\n", + "impliedFormat": 1 }, "version": "-17725527016-export const pkg17 = 17;", - "signature": "-1576904270-export declare const pkg17 = 17;\n" + "signature": "-1576904270-export declare const pkg17 = 17;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1634,7 +1706,7 @@ export declare const pkg17 = 17; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } //// [/user/username/projects/myproject/pkg18/index.js] @@ -1649,7 +1721,7 @@ export declare const pkg18 = 18; //// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16434059014-export const pkg18 = 18;","signature":"-1908133164-export declare const pkg18 = 18;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16434059014-export const pkg18 = 18;","signature":"-1908133164-export declare const pkg18 = 18;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg18/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1662,19 +1734,23 @@ export declare const pkg18 = 18; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-16434059014-export const pkg18 = 18;", - "signature": "-1908133164-export declare const pkg18 = 18;\n" + "signature": "-1908133164-export declare const pkg18 = 18;\n", + "impliedFormat": 1 }, "version": "-16434059014-export const pkg18 = 18;", - "signature": "-1908133164-export declare const pkg18 = 18;\n" + "signature": "-1908133164-export declare const pkg18 = 18;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1694,7 +1770,7 @@ export declare const pkg18 = 18; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } //// [/user/username/projects/myproject/pkg19/index.js] @@ -1709,7 +1785,7 @@ export declare const pkg19 = 19; //// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15142591012-export const pkg19 = 19;","signature":"-2239362058-export declare const pkg19 = 19;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15142591012-export const pkg19 = 19;","signature":"-2239362058-export declare const pkg19 = 19;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg19/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1722,19 +1798,23 @@ export declare const pkg19 = 19; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15142591012-export const pkg19 = 19;", - "signature": "-2239362058-export declare const pkg19 = 19;\n" + "signature": "-2239362058-export declare const pkg19 = 19;\n", + "impliedFormat": 1 }, "version": "-15142591012-export const pkg19 = 19;", - "signature": "-2239362058-export declare const pkg19 = 19;\n" + "signature": "-2239362058-export declare const pkg19 = 19;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1754,7 +1834,7 @@ export declare const pkg19 = 19; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } //// [/user/username/projects/myproject/pkg20/index.js] @@ -1769,7 +1849,7 @@ export declare const pkg20 = 20; //// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14212130036-export const pkg20 = 20;","signature":"-5893888218-export declare const pkg20 = 20;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14212130036-export const pkg20 = 20;","signature":"-5893888218-export declare const pkg20 = 20;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg20/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1782,19 +1862,23 @@ export declare const pkg20 = 20; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14212130036-export const pkg20 = 20;", - "signature": "-5893888218-export declare const pkg20 = 20;\n" + "signature": "-5893888218-export declare const pkg20 = 20;\n", + "impliedFormat": 1 }, "version": "-14212130036-export const pkg20 = 20;", - "signature": "-5893888218-export declare const pkg20 = 20;\n" + "signature": "-5893888218-export declare const pkg20 = 20;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1814,7 +1898,7 @@ export declare const pkg20 = 20; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } //// [/user/username/projects/myproject/pkg21/index.js] @@ -1829,7 +1913,7 @@ export declare const pkg21 = 21; //// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-17215629330-export const pkg21 = 21;","signature":"-6225117112-export declare const pkg21 = 21;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17215629330-export const pkg21 = 21;","signature":"-6225117112-export declare const pkg21 = 21;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg21/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1842,19 +1926,23 @@ export declare const pkg21 = 21; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-17215629330-export const pkg21 = 21;", - "signature": "-6225117112-export declare const pkg21 = 21;\n" + "signature": "-6225117112-export declare const pkg21 = 21;\n", + "impliedFormat": 1 }, "version": "-17215629330-export const pkg21 = 21;", - "signature": "-6225117112-export declare const pkg21 = 21;\n" + "signature": "-6225117112-export declare const pkg21 = 21;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1874,7 +1962,7 @@ export declare const pkg21 = 21; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 756 + "size": 792 } //// [/user/username/projects/myproject/pkg22/index.js] @@ -1889,7 +1977,7 @@ export declare const pkg22 = 22; //// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15924161328-export const pkg22 = 22;","signature":"-6556346006-export declare const pkg22 = 22;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15924161328-export const pkg22 = 22;","signature":"-6556346006-export declare const pkg22 = 22;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg22/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1902,19 +1990,23 @@ export declare const pkg22 = 22; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15924161328-export const pkg22 = 22;", - "signature": "-6556346006-export declare const pkg22 = 22;\n" + "signature": "-6556346006-export declare const pkg22 = 22;\n", + "impliedFormat": 1 }, "version": "-15924161328-export const pkg22 = 22;", - "signature": "-6556346006-export declare const pkg22 = 22;\n" + "signature": "-6556346006-export declare const pkg22 = 22;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1934,9 +2026,71 @@ export declare const pkg22 = 22; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 756 -} - + "size": 792 +} + + +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg0/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg10/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg11/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg12/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg13/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg14/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg15/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg16/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg17/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg18/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg19/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg20/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg21/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg22/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg3/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg4/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg5/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg6/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg7/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg8/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg9/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/pkg0/index.ts: *new* @@ -2690,7 +2844,7 @@ var someConst2 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2703,19 +2857,23 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -2735,7 +2893,7 @@ var someConst2 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 773 + "size": 809 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -2829,7 +2987,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2842,19 +3000,23 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": 1 }, "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -2874,7 +3036,7 @@ export declare const someConst = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 838 + "size": 874 } @@ -3568,7 +3730,7 @@ export declare const someConst3 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3581,19 +3743,23 @@ export declare const someConst3 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": 1 }, "version": "10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -3613,7 +3779,7 @@ export declare const someConst3 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 908 + "size": 944 } @@ -3995,7 +4161,7 @@ var someConst4 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4008,19 +4174,23 @@ var someConst4 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": 1 }, "version": "27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -4040,7 +4210,7 @@ var someConst4 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 930 + "size": 966 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -4262,7 +4432,7 @@ export declare const someConst5 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"14710086947-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;export const someConst5 = 10;","signature":"4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"14710086947-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;export const someConst5 = 10;","signature":"4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4275,19 +4445,23 @@ export declare const someConst5 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "14710086947-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;export const someConst5 = 10;", - "signature": "4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n" + "signature": "4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n", + "impliedFormat": 1 }, "version": "14710086947-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;export const someConst5 = 10;", - "signature": "4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n" + "signature": "4956132399-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\nexport declare const someConst5 = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -4307,7 +4481,7 @@ export declare const someConst5 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 996 + "size": 1032 } diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js index d0bf5416c7043..801079756348a 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js @@ -109,7 +109,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -122,19 +122,23 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -154,7 +158,7 @@ export declare const pkg0 = 0; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -169,7 +173,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,19 +186,23 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": 1 }, "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -214,7 +222,7 @@ export declare const pkg1 = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -229,7 +237,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,19 +250,23 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": 1 }, "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -274,10 +286,32 @@ export declare const pkg2 = 2; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg0/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/pkg0/index.ts: *new* {} @@ -410,7 +444,7 @@ var someConst2 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -423,19 +457,23 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -455,7 +493,7 @@ var someConst2 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 773 + "size": 809 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -529,7 +567,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -542,19 +580,23 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": 1 }, "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -574,7 +616,7 @@ export declare const someConst = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 838 + "size": 874 } diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js index 63f002f981c10..8a2e16811600d 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js @@ -155,7 +155,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,19 +168,23 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -200,7 +204,7 @@ export declare const pkg0 = 0; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -215,7 +219,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -228,19 +232,23 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": 1 }, "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -260,7 +268,7 @@ export declare const pkg1 = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -275,7 +283,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -288,19 +296,23 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": 1 }, "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -320,7 +332,7 @@ export declare const pkg2 = 2; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg3/index.js] @@ -335,7 +347,7 @@ export declare const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -348,19 +360,23 @@ export declare const pkg3 = 3; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14375483634-export const pkg3 = 3;", - "signature": "-5242392728-export declare const pkg3 = 3;\n" + "signature": "-5242392728-export declare const pkg3 = 3;\n", + "impliedFormat": 1 }, "version": "-14375483634-export const pkg3 = 3;", - "signature": "-5242392728-export declare const pkg3 = 3;\n" + "signature": "-5242392728-export declare const pkg3 = 3;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -380,7 +396,7 @@ export declare const pkg3 = 3; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg4/index.js] @@ -395,7 +411,7 @@ export declare const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -408,19 +424,23 @@ export declare const pkg4 = 4; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14336348208-export const pkg4 = 4;", - "signature": "-3950923670-export declare const pkg4 = 4;\n" + "signature": "-3950923670-export declare const pkg4 = 4;\n", + "impliedFormat": 1 }, "version": "-14336348208-export const pkg4 = 4;", - "signature": "-3950923670-export declare const pkg4 = 4;\n" + "signature": "-3950923670-export declare const pkg4 = 4;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -440,10 +460,36 @@ export declare const pkg4 = 4; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg0/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg3/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg4/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/pkg0/index.ts: *new* {} @@ -638,7 +684,7 @@ var someConst2 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -651,19 +697,23 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -683,7 +733,7 @@ var someConst2 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 773 + "size": 809 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -759,7 +809,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -772,19 +822,23 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": 1 }, "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -804,7 +858,7 @@ export declare const someConst = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 838 + "size": 874 } diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js index 1db0e93392314..5cca652cc4e97 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js @@ -224,7 +224,7 @@ export declare const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10197922616-export const pkg0 = 0;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -237,19 +237,23 @@ export declare const pkg0 = 0; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-10197922616-export const pkg0 = 0;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -269,7 +273,7 @@ export declare const pkg0 = 0; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg1/index.js] @@ -284,7 +288,7 @@ export declare const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10158787190-export const pkg1 = 1;","signature":"-3530363548-export declare const pkg1 = 1;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -297,19 +301,23 @@ export declare const pkg1 = 1; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": 1 }, "version": "-10158787190-export const pkg1 = 1;", - "signature": "-3530363548-export declare const pkg1 = 1;\n" + "signature": "-3530363548-export declare const pkg1 = 1;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -329,7 +337,7 @@ export declare const pkg1 = 1; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg2/index.js] @@ -344,7 +352,7 @@ export declare const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14414619060-export const pkg2 = 2;","signature":"-6533861786-export declare const pkg2 = 2;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,19 +365,23 @@ export declare const pkg2 = 2; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": 1 }, "version": "-14414619060-export const pkg2 = 2;", - "signature": "-6533861786-export declare const pkg2 = 2;\n" + "signature": "-6533861786-export declare const pkg2 = 2;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -389,7 +401,7 @@ export declare const pkg2 = 2; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg3/index.js] @@ -404,7 +416,7 @@ export declare const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14375483634-export const pkg3 = 3;","signature":"-5242392728-export declare const pkg3 = 3;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg3/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -417,19 +429,23 @@ export declare const pkg3 = 3; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14375483634-export const pkg3 = 3;", - "signature": "-5242392728-export declare const pkg3 = 3;\n" + "signature": "-5242392728-export declare const pkg3 = 3;\n", + "impliedFormat": 1 }, "version": "-14375483634-export const pkg3 = 3;", - "signature": "-5242392728-export declare const pkg3 = 3;\n" + "signature": "-5242392728-export declare const pkg3 = 3;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -449,7 +465,7 @@ export declare const pkg3 = 3; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg4/index.js] @@ -464,7 +480,7 @@ export declare const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14336348208-export const pkg4 = 4;","signature":"-3950923670-export declare const pkg4 = 4;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg4/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -477,19 +493,23 @@ export declare const pkg4 = 4; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14336348208-export const pkg4 = 4;", - "signature": "-3950923670-export declare const pkg4 = 4;\n" + "signature": "-3950923670-export declare const pkg4 = 4;\n", + "impliedFormat": 1 }, "version": "-14336348208-export const pkg4 = 4;", - "signature": "-3950923670-export declare const pkg4 = 4;\n" + "signature": "-3950923670-export declare const pkg4 = 4;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -509,7 +529,7 @@ export declare const pkg4 = 4; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg5/index.js] @@ -524,7 +544,7 @@ export declare const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14297212782-export const pkg5 = 5;","signature":"-2659454612-export declare const pkg5 = 5;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg5/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -537,19 +557,23 @@ export declare const pkg5 = 5; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14297212782-export const pkg5 = 5;", - "signature": "-2659454612-export declare const pkg5 = 5;\n" + "signature": "-2659454612-export declare const pkg5 = 5;\n", + "impliedFormat": 1 }, "version": "-14297212782-export const pkg5 = 5;", - "signature": "-2659454612-export declare const pkg5 = 5;\n" + "signature": "-2659454612-export declare const pkg5 = 5;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -569,7 +593,7 @@ export declare const pkg5 = 5; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg6/index.js] @@ -584,7 +608,7 @@ export declare const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14258077356-export const pkg6 = 6;","signature":"-5662952850-export declare const pkg6 = 6;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg6/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -597,19 +621,23 @@ export declare const pkg6 = 6; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14258077356-export const pkg6 = 6;", - "signature": "-5662952850-export declare const pkg6 = 6;\n" + "signature": "-5662952850-export declare const pkg6 = 6;\n", + "impliedFormat": 1 }, "version": "-14258077356-export const pkg6 = 6;", - "signature": "-5662952850-export declare const pkg6 = 6;\n" + "signature": "-5662952850-export declare const pkg6 = 6;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -629,7 +657,7 @@ export declare const pkg6 = 6; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } //// [/user/username/projects/myproject/pkg7/index.js] @@ -644,7 +672,7 @@ export declare const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14218941930-export const pkg7 = 7;","signature":"-4371483792-export declare const pkg7 = 7;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg7/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -657,19 +685,23 @@ export declare const pkg7 = 7; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-14218941930-export const pkg7 = 7;", - "signature": "-4371483792-export declare const pkg7 = 7;\n" + "signature": "-4371483792-export declare const pkg7 = 7;\n", + "impliedFormat": 1 }, "version": "-14218941930-export const pkg7 = 7;", - "signature": "-4371483792-export declare const pkg7 = 7;\n" + "signature": "-4371483792-export declare const pkg7 = 7;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -689,10 +721,42 @@ export declare const pkg7 = 7; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 752 + "size": 788 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg0/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg3/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg4/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg5/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg6/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg7/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/pkg0/index.ts: *new* {} @@ -980,7 +1044,7 @@ var someConst2 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7839887915-export const pkg0 = 0;const someConst2 = 10;","signature":"-4821832606-export declare const pkg0 = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -993,19 +1057,23 @@ var someConst2 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": 1 }, "version": "-7839887915-export const pkg0 = 0;const someConst2 = 10;", - "signature": "-4821832606-export declare const pkg0 = 0;\n" + "signature": "-4821832606-export declare const pkg0 = 0;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1025,7 +1093,7 @@ var someConst2 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 773 + "size": 809 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time @@ -1104,7 +1172,7 @@ export declare const someConst = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;","signature":"-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1117,19 +1185,23 @@ export declare const someConst = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": 1 }, "version": "1748855762-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;", - "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n" + "signature": "-6216230055-export declare const pkg0 = 0;\nexport declare const someConst = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1149,7 +1221,7 @@ export declare const someConst = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 838 + "size": 874 } @@ -1429,7 +1501,7 @@ export declare const someConst3 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1442,19 +1514,23 @@ export declare const someConst3 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": 1 }, "version": "10857255042-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1474,7 +1550,7 @@ export declare const someConst3 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 908 + "size": 944 } @@ -1698,7 +1774,7 @@ var someConst4 = 10; //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;","signature":"-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/pkg0/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1711,19 +1787,23 @@ var someConst4 = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": 1 }, "version": "27277091473-export const pkg0 = 0;const someConst2 = 10;export const someConst = 10;export const someConst3 = 10;const someConst4 = 10;", - "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n" + "signature": "-13679921373-export declare const pkg0 = 0;\nexport declare const someConst = 10;\nexport declare const someConst3 = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1743,7 +1823,7 @@ var someConst4 = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 930 + "size": 966 } //// [/user/username/projects/myproject/pkg1/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js index 4c1d89c9e9ace..9efaf03eff42b 100644 --- a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js +++ b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js @@ -113,7 +113,7 @@ export declare function f2(): void; //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing"],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-9393727241-export declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-9393727241-export declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -126,15 +126,22 @@ export declare function f2(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", + "impliedFormat": 1 + }, "version": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", - "signature": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing" + "signature": "8649344783-export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", + "impliedFormat": "commonjs" } }, "root": [ @@ -160,7 +167,7 @@ export declare function f2(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 939 + "size": 987 } //// [/user/username/projects/myproject/webpack/index.js] @@ -197,7 +204,7 @@ export declare function f22(): void; //// [/user/username/projects/myproject/webpack/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing"],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-2037002130-export declare function f2(): void;\nexport declare class c2 {\n}\nexport declare enum e2 {\n}\nexport declare function f22(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"emitSignatures":[[2,"-2037002130-export declare function f2(): void;\nexport declare class c2 {\n}\nexport declare enum e2 {\n}\nexport declare function f22(): void;\n"]],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/webpack/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,15 +217,22 @@ export declare function f22(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing", + "impliedFormat": 1 + }, "version": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing", - "signature": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing" + "signature": "20140662566-export function f2() { }\nexport class c2 { }\nexport enum e2 { }\n// leading\nexport function f22() { } // trailing", + "impliedFormat": "commonjs" } }, "root": [ @@ -244,10 +258,30 @@ export declare function f22(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 946 + "size": 994 } +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/webpack/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/shared/index.ts: *new* {} @@ -374,7 +408,7 @@ export declare function f2(): void; //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"14127205977-export function fooBar() {}export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing","signature":"1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"14127205977-export function fooBar() {}export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing","signature":"1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/shared/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -387,19 +421,23 @@ export declare function f2(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "14127205977-export function fooBar() {}export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", - "signature": "1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n" + "signature": "1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n", + "impliedFormat": 1 }, "version": "14127205977-export function fooBar() {}export function f1() { }\nexport class c { }\nexport enum e { }\n// leading\nexport function f2() { } // trailing", - "signature": "1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n" + "signature": "1966424426-export declare function fooBar(): void;\nexport declare function f1(): void;\nexport declare class c {\n}\nexport declare enum e {\n}\nexport declare function f2(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -419,7 +457,7 @@ export declare function f2(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1008 + "size": 1044 } diff --git a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js index b0e4929179dfd..bac5440bc6773 100644 --- a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js +++ b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js @@ -135,7 +135,7 @@ export * from "./session"; //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n","impliedFormat":1},{"version":"-5356193041-export * from \"./session\";\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -154,23 +154,32 @@ export * from "./session"; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/pure/session.ts": { "original": { "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", - "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" + "signature": "-1218067212-export interface Session {\n foo: number;\n}\n", + "impliedFormat": 1 }, "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", - "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" + "signature": "-1218067212-export interface Session {\n foo: number;\n}\n", + "impliedFormat": "commonjs" }, "../../src/pure/index.ts": { + "original": { + "version": "-5356193041-export * from \"./session\";\n", + "impliedFormat": 1 + }, "version": "-5356193041-export * from \"./session\";\n", - "signature": "-5356193041-export * from \"./session\";\n" + "signature": "-5356193041-export * from \"./session\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -201,7 +210,7 @@ export * from "./session"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1049 + "size": 1115 } //// [/user/username/projects/reexport/out/main/index.js] @@ -215,6 +224,28 @@ exports.session = { PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/reexport/out/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/reexport/out/pure/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/reexport/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/reexport/src/main/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/reexport/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/reexport/src/pure/package.json: *new* {"pollingInterval":2000} @@ -333,7 +364,7 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"309257137-export interface Session {\n foo: number;\n bar: number;\n}\n","-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"309257137-export interface Session {\n foo: number;\n bar: number;\n}\n","impliedFormat":1},{"version":"-5356193041-export * from \"./session\";\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -352,19 +383,31 @@ export interface Session { "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/pure/session.ts": { + "original": { + "version": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n", + "impliedFormat": 1 + }, "version": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n", - "signature": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n" + "signature": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n", + "impliedFormat": "commonjs" }, "../../src/pure/index.ts": { + "original": { + "version": "-5356193041-export * from \"./session\";\n", + "impliedFormat": 1 + }, "version": "-5356193041-export * from \"./session\";\n", - "signature": "-5356193041-export * from \"./session\";\n" + "signature": "-5356193041-export * from \"./session\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -395,7 +438,7 @@ export interface Session { "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 959 + "size": 1037 } @@ -517,7 +560,7 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n","impliedFormat":1},{"version":"-5356193041-export * from \"./session\";\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -536,23 +579,32 @@ export interface Session { "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/pure/session.ts": { "original": { "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", - "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" + "signature": "-1218067212-export interface Session {\n foo: number;\n}\n", + "impliedFormat": 1 }, "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", - "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" + "signature": "-1218067212-export interface Session {\n foo: number;\n}\n", + "impliedFormat": "commonjs" }, "../../src/pure/index.ts": { + "original": { + "version": "-5356193041-export * from \"./session\";\n", + "impliedFormat": 1 + }, "version": "-5356193041-export * from \"./session\";\n", - "signature": "-5356193041-export * from \"./session\";\n" + "signature": "-5356193041-export * from \"./session\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -583,7 +635,7 @@ export interface Session { "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 1051 + "size": 1117 } diff --git a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js index d8adbeb93c4c7..7a9b7769d9a55 100644 --- a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js +++ b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js @@ -154,6 +154,32 @@ exports.pkg3 = 3; +PolledWatches:: +/a/lib/package.json: *new* + {"pollingInterval":2000} +/a/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":2000} +/user/package.json: *new* + {"pollingInterval":2000} +/user/username/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg0/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/pkg3/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/typings/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/pkg0/index.ts: *new* {} @@ -466,6 +492,34 @@ Output:: +PolledWatches:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/pkg0/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/pkg1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/pkg2/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/typings/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/pkg3/package.json: + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/pkg0/index.ts: {} @@ -655,6 +709,30 @@ Output:: +PolledWatches *deleted*:: +/a/lib/package.json: + {"pollingInterval":2000} +/a/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":2000} +/user/package.json: + {"pollingInterval":2000} +/user/username/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/pkg0/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/pkg1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/pkg2/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/typings/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + FsWatches:: /user/username/projects/myproject/tsconfig.json: {} diff --git a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js index c5f4bec270c67..5c9a2900a5b8f 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js @@ -112,7 +112,7 @@ export declare class D { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-5130721255-export class C {\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5130721255-export class C {\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -136,43 +136,53 @@ export declare class D { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-5130721255-export class C {\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-5130721255-export class C {\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": 1 }, "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -209,7 +219,7 @@ export declare class D { ] }, "version": "FakeTSVersion", - "size": 1236 + "size": 1326 } @@ -263,7 +273,7 @@ Operation ws cancelled:: true //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,5],"changeFileSet":[2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,5],"changeFileSet":[2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -287,43 +297,53 @@ Operation ws cancelled:: true "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": 1 }, "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -362,7 +382,7 @@ Operation ws cancelled:: true ] }, "version": "FakeTSVersion", - "size": 1276 + "size": 1366 } @@ -422,7 +442,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n"},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n","impliedFormat":1},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -446,43 +466,53 @@ export declare function foo(): void; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n" + "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n" + "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": 1 }, "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -519,7 +549,7 @@ export declare function foo(): void; ] }, "version": "FakeTSVersion", - "size": 1296 + "size": 1386 } diff --git a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js index abf55988c4473..8370dc648cff3 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js @@ -112,7 +112,7 @@ export declare class D { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-5130721255-export class C {\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5130721255-export class C {\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -136,43 +136,53 @@ export declare class D { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-5130721255-export class C {\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-5130721255-export class C {\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": 1 }, "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -209,7 +219,7 @@ export declare class D { ] }, "version": "FakeTSVersion", - "size": 1236 + "size": 1326 } @@ -263,7 +273,7 @@ Operation ws cancelled:: true //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,5],"changeFileSet":[2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,5],"changeFileSet":[2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -287,43 +297,53 @@ Operation ws cancelled:: true "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": 1 }, "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -362,7 +382,7 @@ Operation ws cancelled:: true ] }, "version": "FakeTSVersion", - "size": 1276 + "size": 1366 } @@ -422,7 +442,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n"},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"840271342-export class C {\n d = 1;\n}export function foo() {}","signature":"-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n","impliedFormat":1},{"version":"-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -446,43 +466,53 @@ export declare function foo(): void; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n" + "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "840271342-export class C {\n d = 1;\n}export function foo() {}", - "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n" + "signature": "-7819740442-export declare class C {\n d: number;\n}\nexport declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6441446591-import {C} from './c';\nexport class B {\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": 1 }, "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -519,7 +549,7 @@ export declare function foo(): void; ] }, "version": "FakeTSVersion", - "size": 1296 + "size": 1386 } diff --git a/tests/baselines/reference/tsc/composite/converting-to-modules.js b/tests/baselines/reference/tsc/composite/converting-to-modules.js index 353c98b93221b..fc07c495c2a1b 100644 --- a/tests/baselines/reference/tsc/composite/converting-to-modules.js +++ b/tests/baselines/reference/tsc/composite/converting-to-modules.js @@ -42,7 +42,7 @@ var x = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -55,21 +55,25 @@ var x = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -89,7 +93,7 @@ var x = 10; "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 825 + "size": 861 } @@ -113,7 +117,7 @@ exitCode:: ExitStatus.Success //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"module":5},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"composite":true,"module":5},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -126,21 +130,25 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -161,6 +169,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 844 + "size": 880 } diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js index 5f894514b0b11..73a21de2993c2 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js @@ -100,6 +100,12 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: +File '/user/username/projects/myproject/plugin-one/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/action.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -117,6 +123,13 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/plugin-one/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -130,6 +143,12 @@ File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts', result '/user/username/projects/myProject/plugin-two/index.d.ts'. ======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myProject/plugin-two/index.d.ts'. ======== +File '/user/username/projects/myProject/plugin-two/package.json' does not exist. +File '/user/username/projects/myProject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'typescript-fsa' from '/user/username/projects/myProject/plugin-two/index.d.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -147,6 +166,10 @@ File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/i File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' plugin-one/node_modules/typescript-fsa/index.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js index 9b09deb1c32b8..202d324d5720d 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js @@ -106,6 +106,12 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: +File '/user/username/projects/myproject/plugin-one/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -141,6 +147,9 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myProject/plugin-two/dist/commonjs/package.json' does not exist. +File '/user/username/projects/myProject/plugin-two/dist/package.json' does not exist. +Found 'package.json' at '/user/username/projects/myProject/plugin-two/package.json'. ======== Resolving module 'typescript-fsa' from '/user/username/projects/myProject/plugin-two/dist/commonjs/index.d.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -160,6 +169,11 @@ File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/i File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' plugin-two/node_modules/typescript-fsa/index.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js index 8fa2d05c7143e..54045cea94df0 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js @@ -106,6 +106,12 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: +File '/user/username/projects/myproject/plugin-one/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -141,6 +147,9 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myproject/plugin-two/dist/commonjs/package.json' does not exist. +File '/user/username/projects/myproject/plugin-two/dist/package.json' does not exist. +Found 'package.json' at '/user/username/projects/myproject/plugin-two/package.json'. ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -160,6 +169,11 @@ File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/i File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' plugin-two/node_modules/typescript-fsa/index.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js index e93335e0fab48..fa3693efc94b3 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js @@ -100,6 +100,12 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -p plugin-one --explainFiles Output:: +File '/user/username/projects/myproject/plugin-one/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-one/action.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -117,6 +123,13 @@ File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/i File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/plugin-one/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'plugin-two' from '/user/username/projects/myproject/plugin-one/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -130,6 +143,12 @@ File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts', result '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== Module name 'plugin-two' was successfully resolved to '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== +File '/user/username/projects/myproject/plugin-two/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'typescript-fsa' from '/user/username/projects/myproject/plugin-two/index.d.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -147,6 +166,10 @@ File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/i File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts', result '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts'. ======== Module name 'typescript-fsa' was successfully resolved to '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts' with Package ID 'typescript-fsa/index.d.ts@3.0.0-beta-2'. ======== +File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' plugin-one/node_modules/typescript-fsa/index.d.ts diff --git a/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js index 73152dc12a260..4e707059e35d2 100644 --- a/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js @@ -56,7 +56,7 @@ export declare const x = 10; //// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"6873164248-// some comment\nexport const x = 10;\n","signature":"-6821242887-export declare const x = 10;\n"}],"root":[2],"options":{"composite":true,"removeComments":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"6873164248-// some comment\nexport const x = 10;\n","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"removeComments":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -69,19 +69,23 @@ export declare const x = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "6873164248-// some comment\nexport const x = 10;\n", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "6873164248-// some comment\nexport const x = 10;\n", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -102,7 +106,7 @@ export declare const x = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 787 + "size": 823 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js index 850a4149e2e9c..c1b0eea3b9eff 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js @@ -83,7 +83,7 @@ var wrapper = function () { return Messageable(); }; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true,"impliedFormat":1},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedFormat":1},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,27 +102,33 @@ var wrapper = function () { return Messageable(); }; "../../lib/lib.d.ts": { "original": { "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", "signature": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./messageableperson.ts": { "original": { "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n" + "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedFormat": 1 }, "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n" + "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -150,7 +156,7 @@ var wrapper = function () { return Messageable(); }; ] }, "version": "FakeTSVersion", - "size": 1658 + "size": 1712 } @@ -205,7 +211,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/project/main.js] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected."},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2],"emitDiagnosticsPerFile":[[2,[{"file":"./messageableperson.ts","start":116,"length":7,"messageText":"Property 'message' of exported class expression may not be private or protected.","category":1,"code":4094}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true,"impliedFormat":1},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected.","impliedFormat":1},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2],"emitDiagnosticsPerFile":[[2,[{"file":"./messageableperson.ts","start":116,"length":7,"messageText":"Property 'message' of exported class expression may not be private or protected.","category":1,"code":4094}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -224,27 +230,33 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "../../lib/lib.d.ts": { "original": { "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", "signature": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./messageableperson.ts": { "original": { "version": "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." + "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected.", + "impliedFormat": 1 }, "version": "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." + "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected.", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -299,7 +311,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2163 + "size": 2217 } @@ -355,7 +367,7 @@ exitCode:: ExitStatus.Success //// [/src/project/MessageablePerson.d.ts] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true,"impliedFormat":1},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedFormat":1},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"declaration":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -374,27 +386,33 @@ exitCode:: ExitStatus.Success "../../lib/lib.d.ts": { "original": { "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", "signature": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./messageableperson.ts": { "original": { "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n" + "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedFormat": 1 }, "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n" + "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -422,7 +440,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1658 + "size": 1712 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js index 3957d714babbc..1b838b08ca048 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js @@ -69,7 +69,7 @@ var wrapper = function () { return Messageable(); }; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}"],"root":[2,3],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true,"impliedFormat":1},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","impliedFormat":1},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","impliedFormat":1}],"root":[2,3],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -88,19 +88,31 @@ var wrapper = function () { return Messageable(); }; "../../lib/lib.d.ts": { "original": { "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", "signature": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./messageableperson.ts": { + "original": { + "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "impliedFormat": 1 + }, "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;" + "signature": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "impliedFormat": 1 + }, "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}" + "signature": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -128,7 +140,7 @@ var wrapper = function () { return Messageable(); }; ] }, "version": "FakeTSVersion", - "size": 1380 + "size": 1458 } @@ -174,7 +186,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/main.js] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected."},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true,"impliedFormat":1},{"version":"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected.","impliedFormat":1},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./main.ts","start":131,"length":7,"messageText":"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses.","category":1,"code":2445}]],2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -193,27 +205,33 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../lib/lib.d.ts": { "original": { "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", "signature": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./messageableperson.ts": { "original": { "version": "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." + "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected.", + "impliedFormat": 1 }, "version": "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." + "signature": "-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected.", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -253,7 +271,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] }, "version": "FakeTSVersion", - "size": 1952 + "size": 2006 } @@ -299,7 +317,7 @@ exitCode:: ExitStatus.Success //// [/src/project/main.js] file written with same contents //// [/src/project/MessageablePerson.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n"},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./messageableperson.ts","./main.ts"],"fileInfos":[{"version":"5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;","affectsGlobalScope":true,"impliedFormat":1},{"version":"31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;","signature":"-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n","impliedFormat":1},{"version":"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"declaration":false},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -318,27 +336,33 @@ exitCode:: ExitStatus.Success "../../lib/lib.d.ts": { "original": { "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", "signature": "5700251342-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };type ReturnType any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType any> = T extends abstract new (...args: any) => infer R ? R : any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./messageableperson.ts": { "original": { "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n" + "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedFormat": 1 }, "version": "31173349369-const Messageable = () => {\n return class MessageableClass {\n public message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;", - "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n" + "signature": "-21006966954-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType>;\nexport default MessageablePerson;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -366,7 +390,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1659 + "size": 1713 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js index 8254c9bee672f..da1eea15878c4 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js @@ -75,7 +75,7 @@ Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: functi //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664763344-declare const a = 1;\n","affectsGlobalScope":true},{"version":"-2659799048-export default 1;","signature":"-183154784-declare const _default: 1;\nexport default _default;\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1081498782-export { default as ConstantNumber } from \"./constants\";\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./reexport.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664763344-declare const a = 1;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2659799048-export default 1;","signature":"-183154784-declare const _default: 1;\nexport default _default;\n","impliedFormat":1},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1081498782-export { default as ConstantNumber } from \"./constants\";\n","impliedFormat":1},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./reexport.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,46 +99,56 @@ Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: functi "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class1.ts": { "original": { "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664763344-declare const a = 1;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664763344-declare const a = 1;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./constants.ts": { "original": { "version": "-2659799048-export default 1;", - "signature": "-183154784-declare const _default: 1;\nexport default _default;\n" + "signature": "-183154784-declare const _default: 1;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-2659799048-export default 1;", - "signature": "-183154784-declare const _default: 1;\nexport default _default;\n" + "signature": "-183154784-declare const _default: 1;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "./reexport.ts": { "original": { "version": "-1476032387-export { default as ConstantNumber } from \"./constants\"", - "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n" + "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n", + "impliedFormat": 1 }, "version": "-1476032387-export { default as ConstantNumber } from \"./constants\"", - "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n" + "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n", + "impliedFormat": "commonjs" }, "./types.d.ts": { "original": { "version": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", "signature": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -176,7 +186,7 @@ Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: functi "latestChangedDtsFile": "./reexport.d.ts" }, "version": "FakeTSVersion", - "size": 1360 + "size": 1450 } @@ -218,7 +228,7 @@ exports.default = 2; //// [/src/project/reexport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664762255-declare const a = 2;\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1081498782-export { default as ConstantNumber } from \"./constants\";\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4,5],"latestChangedDtsFile":"./class1.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664762255-declare const a = 2;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n","impliedFormat":1},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1081498782-export { default as ConstantNumber } from \"./constants\";\n","impliedFormat":1},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[3],[4]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4,5],"latestChangedDtsFile":"./class1.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,46 +252,56 @@ exports.default = 2; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class1.ts": { "original": { "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664762255-declare const a = 2;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664762255-declare const a = 2;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./constants.ts": { "original": { "version": "-2659799015-export default 2;", - "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n" + "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-2659799015-export default 2;", - "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n" + "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "./reexport.ts": { "original": { "version": "-1476032387-export { default as ConstantNumber } from \"./constants\"", - "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n" + "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n", + "impliedFormat": 1 }, "version": "-1476032387-export { default as ConstantNumber } from \"./constants\"", - "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n" + "signature": "-1081498782-export { default as ConstantNumber } from \"./constants\";\n", + "impliedFormat": "commonjs" }, "./types.d.ts": { "original": { "version": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", "signature": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -331,6 +351,6 @@ exports.default = 2; "latestChangedDtsFile": "./class1.d.ts" }, "version": "FakeTSVersion", - "size": 1489 + "size": 1579 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js index 66127839bc652..83f28886aafc1 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js @@ -60,7 +60,7 @@ exports.default = 1; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664763344-declare const a = 1;\n","affectsGlobalScope":true},{"version":"-2659799048-export default 1;","signature":"-183154784-declare const _default: 1;\nexport default _default;\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./constants.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664763344-declare const a = 1;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2659799048-export default 1;","signature":"-183154784-declare const _default: 1;\nexport default _default;\n","impliedFormat":1},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./constants.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -80,38 +80,46 @@ exports.default = 1; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class1.ts": { "original": { "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664763344-declare const a = 1;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664763344-declare const a = 1;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./constants.ts": { "original": { "version": "-2659799048-export default 1;", - "signature": "-183154784-declare const _default: 1;\nexport default _default;\n" + "signature": "-183154784-declare const _default: 1;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-2659799048-export default 1;", - "signature": "-183154784-declare const _default: 1;\nexport default _default;\n" + "signature": "-183154784-declare const _default: 1;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "./types.d.ts": { "original": { "version": "-2080821236-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-2080821236-type MagicNumber = typeof import('./constants').default", "signature": "-2080821236-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -144,7 +152,7 @@ exports.default = 1; "latestChangedDtsFile": "./constants.d.ts" }, "version": "FakeTSVersion", - "size": 1157 + "size": 1229 } @@ -185,7 +193,7 @@ exports.default = 2; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664762255-declare const a = 2;\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4],"latestChangedDtsFile":"./class1.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664762255-declare const a = 2;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n","impliedFormat":1},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./class1.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]],3,4],"latestChangedDtsFile":"./class1.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -205,38 +213,46 @@ exports.default = 2; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class1.ts": { "original": { "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664762255-declare const a = 2;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", "signature": "-3664762255-declare const a = 2;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./constants.ts": { "original": { "version": "-2659799015-export default 2;", - "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n" + "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n", + "impliedFormat": 1 }, "version": "-2659799015-export default 2;", - "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n" + "signature": "-10876795135-declare const _default: 2;\nexport default _default;\n", + "impliedFormat": "commonjs" }, "./types.d.ts": { "original": { "version": "-2080821236-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-2080821236-type MagicNumber = typeof import('./constants').default", "signature": "-2080821236-type MagicNumber = typeof import('./constants').default", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -281,6 +297,6 @@ exports.default = 2; "latestChangedDtsFile": "./class1.d.ts" }, "version": "FakeTSVersion", - "size": 1285 + "size": 1357 } diff --git a/tests/baselines/reference/tsc/incremental/different-options-discrepancies.js b/tests/baselines/reference/tsc/incremental/different-options-discrepancies.js index e8fd5fc136a36..0694699c274a3 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/different-options-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -66,19 +71,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,19 +137,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -185,19 +200,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -246,19 +266,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -304,19 +329,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-discrepancies.js b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-discrepancies.js index 706bd7b64b101..89fbd35d784e2 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-discrepancies.js @@ -8,19 +8,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -62,19 +67,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-18487752940-export const a = 10;const aLocal = 10;" + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -123,19 +133,24 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -177,19 +192,24 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { - "version": "-17390360476-export const a = 10;const aLocal = 100;" + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" }, "./b.ts": { - "version": "-6189287562-export const b = 10;const bLocal = 10;" + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { - "version": "3248317647-import { a } from \"./a\";export const c = a;" + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { - "version": "-19615769517-import { b } from \"./b\";export const d = b;" + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ 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 e39854108f896..e84c1aa9a3254 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 @@ -8,11 +8,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -39,11 +54,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -78,11 +108,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -109,11 +154,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 8fdc4924f846d..87d1a8ab6cacb 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,7 +97,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -110,11 +110,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -136,7 +171,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 884 + "size": 1034 } @@ -208,7 +243,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -221,11 +256,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -248,7 +318,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 901 + "size": 1051 } @@ -316,7 +386,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -329,11 +399,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -355,7 +460,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 884 + "size": 1034 } @@ -410,7 +515,7 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -423,11 +528,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -450,7 +590,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 903 + "size": 1053 } @@ -509,7 +649,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -522,11 +662,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -550,7 +725,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 925 + "size": 1075 } @@ -656,7 +831,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -669,11 +844,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -695,7 +905,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 885 + "size": 1035 } @@ -738,7 +948,7 @@ 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] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -751,11 +961,46 @@ No shapes updated in the builder:: "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -779,7 +1024,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 926 + "size": 1076 } @@ -883,7 +1128,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -896,11 +1141,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -923,7 +1203,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 908 + "size": 1058 } @@ -995,7 +1275,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1008,11 +1288,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1035,7 +1350,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 902 + "size": 1052 } @@ -1103,7 +1418,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1116,11 +1431,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1142,7 +1492,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 885 + "size": 1035 } @@ -1185,7 +1535,7 @@ 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] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1198,11 +1548,46 @@ No shapes updated in the builder:: "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1226,7 +1611,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 926 + "size": 1076 } diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js b/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js index 55aeaa0cb391d..112df79a805e5 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js @@ -106,7 +106,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -130,27 +130,49 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-18487752940-export const a = 10;const aLocal = 10;" + "signature": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-6189287562-export const b = 10;const bLocal = 10;" + "signature": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "3248317647-import { a } from \"./a\";export const c = a;" + "signature": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-19615769517-import { b } from \"./b\";export const d = b;" + "signature": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -184,7 +206,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1078 } @@ -266,7 +288,7 @@ exports.d = b_1.b; {"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"options":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -290,27 +312,49 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-18487752940-export const a = 10;const aLocal = 10;" + "signature": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-6189287562-export const b = 10;const bLocal = 10;" + "signature": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "3248317647-import { a } from \"./a\";export const c = a;" + "signature": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-19615769517-import { b } from \"./b\";export const d = b;" + "signature": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -347,7 +391,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 969 + "size": 1107 } @@ -416,7 +460,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -440,27 +484,49 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-18487752940-export const a = 10;const aLocal = 10;" + "signature": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-6189287562-export const b = 10;const bLocal = 10;" + "signature": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "3248317647-import { a } from \"./a\";export const c = a;" + "signature": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-19615769517-import { b } from \"./b\";export const d = b;" + "signature": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" } }, "root": [ @@ -494,7 +560,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1078 } @@ -548,7 +614,7 @@ export declare const d = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -572,43 +638,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -645,7 +721,7 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1247 + "size": 1337 } @@ -712,7 +788,7 @@ export declare const d = 10; {"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -736,43 +812,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -810,7 +896,7 @@ export declare const d = 10; ] }, "version": "FakeTSVersion", - "size": 1269 + "size": 1359 } @@ -893,7 +979,7 @@ var aLocal = 100; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -917,43 +1003,53 @@ var aLocal = 100; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -987,7 +1083,7 @@ var aLocal = 100; ] }, "version": "FakeTSVersion", - "size": 1217 + "size": 1307 } @@ -1034,7 +1130,7 @@ No shapes updated in the builder:: //// [/src/project/d.d.ts] file written with same contents //// [/src/project/d.d.ts.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1058,43 +1154,53 @@ No shapes updated in the builder:: "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1132,7 +1238,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1270 + "size": 1360 } @@ -1235,7 +1341,7 @@ exports.d = b_1.b; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1259,43 +1365,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1332,7 +1448,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1252 + "size": 1342 } @@ -1408,7 +1524,7 @@ exports.d = b_1.b; //// [/src/project/d.js.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1432,43 +1548,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1505,7 +1631,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1246 + "size": 1336 } @@ -1574,7 +1700,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1598,43 +1724,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1668,7 +1804,7 @@ exports.d = b_1.b; ] }, "version": "FakeTSVersion", - "size": 1217 + "size": 1307 } @@ -1715,7 +1851,7 @@ No shapes updated in the builder:: //// [/src/project/d.d.ts] file written with same contents //// [/src/project/d.d.ts.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1739,43 +1875,53 @@ No shapes updated in the builder:: "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1813,7 +1959,7 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 1270 + "size": 1360 } 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 c6e40e5d0a283..4467e4ae0572e 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 @@ -6,11 +6,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -41,11 +56,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -81,11 +111,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -116,11 +161,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -154,11 +214,26 @@ CleanBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -189,11 +264,26 @@ IncrementalBuild: { "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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ 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 5a63c62a53519..ca314852a1053 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js @@ -112,7 +112,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -125,11 +125,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -154,7 +189,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1184 + "size": 1334 } @@ -226,7 +261,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -239,11 +274,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -269,7 +339,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1201 + "size": 1351 } @@ -337,7 +407,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -350,11 +420,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -379,7 +484,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1184 + "size": 1334 } @@ -509,7 +614,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -522,11 +627,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -553,7 +693,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1225 + "size": 1375 } @@ -607,7 +747,7 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -620,11 +760,46 @@ declare module "d" { "./project/d.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; };", - "./project/a.ts": "-18487752940-export const a = 10;const aLocal = 10;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": 1 + }, + "version": "-18487752940-export const a = 10;const aLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -649,7 +824,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1184 + "size": 1334 } @@ -791,7 +966,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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] { @@ -804,11 +979,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -833,7 +1043,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1185 + "size": 1335 } @@ -938,7 +1148,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -951,11 +1161,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -981,7 +1226,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1208 + "size": 1358 } @@ -1053,7 +1298,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -1066,11 +1311,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1096,7 +1376,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1202 + "size": 1352 } @@ -1191,7 +1471,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -1204,11 +1484,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1234,7 +1549,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1207 + "size": 1357 } @@ -1305,7 +1620,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.js.map] file written with same contents //// [/src/outFile.tsbuildinfo] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -1318,11 +1633,46 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "./project/d.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; };", - "./project/a.ts": "-17390360476-export const a = 10;const aLocal = 100;", - "./project/b.ts": "-6189287562-export const b = 10;const bLocal = 10;", - "./project/c.ts": "3248317647-import { a } from \"./a\";export const c = a;", - "./project/d.ts": "-19615769517-import { b } from \"./b\";export const d = b;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": 1 + }, + "version": "-17390360476-export const a = 10;const aLocal = 100;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": 1 + }, + "version": "-6189287562-export const b = 10;const bLocal = 10;", + "impliedFormat": "commonjs" + }, + "./project/c.ts": { + "original": { + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": 1 + }, + "version": "3248317647-import { a } from \"./a\";export const c = a;", + "impliedFormat": "commonjs" + }, + "./project/d.ts": { + "original": { + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": 1 + }, + "version": "-19615769517-import { b } from \"./b\";export const d = b;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -1349,6 +1699,6 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1224 + "size": 1374 } diff --git a/tests/baselines/reference/tsc/incremental/different-options.js b/tests/baselines/reference/tsc/incremental/different-options.js index aa61c713d81c8..e26b036f17cc2 100644 --- a/tests/baselines/reference/tsc/incremental/different-options.js +++ b/tests/baselines/reference/tsc/incremental/different-options.js @@ -122,7 +122,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -146,43 +146,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +230,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1279 + "size": 1369 } @@ -302,7 +312,7 @@ exports.d = b_1.b; {"version":3,"file":"d.js","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AAAa,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -326,43 +336,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -401,7 +421,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1296 + "size": 1386 } @@ -470,7 +490,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -494,43 +514,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -568,7 +598,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1279 + "size": 1369 } @@ -702,7 +732,7 @@ export declare const d = 10; {"version":3,"file":"d.d.ts","sourceRoot":"","sources":["d.ts"],"names":[],"mappings":"AAAwB,eAAO,MAAM,CAAC,KAAI,CAAC"} //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -726,43 +756,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -802,7 +842,7 @@ export declare const d = 10; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1320 + "size": 1410 } @@ -855,7 +895,7 @@ export declare const d = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18487752940-export const a = 10;const aLocal = 10;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -879,43 +919,53 @@ export declare const d = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-18487752940-export const a = 10;const aLocal = 10;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -953,7 +1003,7 @@ export declare const d = 10; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1279 + "size": 1369 } @@ -1070,7 +1120,7 @@ var aLocal = 100; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1094,43 +1144,53 @@ var aLocal = 100; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1168,7 +1228,7 @@ var aLocal = 100; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1280 + "size": 1370 } @@ -1272,7 +1332,7 @@ exports.d = b_1.b; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUJBQXdCO0FBQWEsUUFBQSxDQUFDLEdBQUcsS0FBQyxDQUFDIn0= //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1296,43 +1356,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1371,7 +1441,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1303 + "size": 1393 } @@ -1447,7 +1517,7 @@ exports.d = b_1.b; //// [/src/project/d.js.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1471,43 +1541,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1546,7 +1626,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1297 + "size": 1387 } @@ -1644,7 +1724,7 @@ exports.d = b_1.b; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1668,43 +1748,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1743,7 +1833,7 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1302 + "size": 1392 } @@ -1818,7 +1908,7 @@ exports.d = b_1.b; //// [/src/project/d.js.map] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n"},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n"},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n"},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n"}],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-17390360476-export const a = 10;const aLocal = 100;","signature":"-3497920574-export declare const a = 10;\n","impliedFormat":1},{"version":"-6189287562-export const b = 10;const bLocal = 10;","signature":"-3829150557-export declare const b = 10;\n","impliedFormat":1},{"version":"3248317647-import { a } from \"./a\";export const c = a;","signature":"-4160380540-export declare const c = 10;\n","impliedFormat":1},{"version":"-19615769517-import { b } from \"./b\";export const d = b;","signature":"-4491610523-export declare const d = 10;\n","impliedFormat":1}],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"sourceMap":true},"fileIdsList":[[2],[3]],"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./d.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1842,43 +1932,53 @@ exports.d = b_1.b; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": 1 }, "version": "-17390360476-export const a = 10;const aLocal = 100;", - "signature": "-3497920574-export declare const a = 10;\n" + "signature": "-3497920574-export declare const a = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": 1 }, "version": "-6189287562-export const b = 10;const bLocal = 10;", - "signature": "-3829150557-export declare const b = 10;\n" + "signature": "-3829150557-export declare const b = 10;\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": 1 }, "version": "3248317647-import { a } from \"./a\";export const c = a;", - "signature": "-4160380540-export declare const c = 10;\n" + "signature": "-4160380540-export declare const c = 10;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": 1 }, "version": "-19615769517-import { b } from \"./b\";export const d = b;", - "signature": "-4491610523-export declare const d = 10;\n" + "signature": "-4491610523-export declare const d = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1918,6 +2018,6 @@ exports.d = b_1.b; "latestChangedDtsFile": "./d.d.ts" }, "version": "FakeTSVersion", - "size": 1319 + "size": 1409 } diff --git a/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js b/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js index ae8dc00d1cfed..3b6867d92b4c8 100644 --- a/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js +++ b/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js @@ -71,7 +71,7 @@ Shape signatures in builder refreshed for:: //// [/src/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10927263693-export const x: 30 = \"hello\";","-7804761415-export class D { }"],"root":[2,3],"options":{"noEmitOnError":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"../file1.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type '\"hello\"' is not assignable to type '30'."}]],3],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-10927263693-export const x: 30 = \"hello\";","impliedFormat":1},{"version":"-7804761415-export class D { }","impliedFormat":1}],"root":[2,3],"options":{"noEmitOnError":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"../file1.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type '\"hello\"' is not assignable to type '30'."}]],3],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} //// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -85,19 +85,31 @@ Shape signatures in builder refreshed for:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../file1.ts": { + "original": { + "version": "-10927263693-export const x: 30 = \"hello\";", + "impliedFormat": 1 + }, "version": "-10927263693-export const x: 30 = \"hello\";", - "signature": "-10927263693-export const x: 30 = \"hello\";" + "signature": "-10927263693-export const x: 30 = \"hello\";", + "impliedFormat": "commonjs" }, "../file2.ts": { + "original": { + "version": "-7804761415-export class D { }", + "impliedFormat": 1 + }, "version": "-7804761415-export class D { }", - "signature": "-7804761415-export class D { }" + "signature": "-7804761415-export class D { }", + "impliedFormat": "commonjs" } }, "root": [ @@ -144,7 +156,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 966 + "size": 1044 } @@ -186,7 +198,7 @@ No shapes updated in the builder:: //// [/src/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10927263693-export const x: 30 = \"hello\";"],"root":[2],"options":{"noEmitOnError":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"../file1.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type '\"hello\"' is not assignable to type '30'."}]]],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-10927263693-export const x: 30 = \"hello\";","impliedFormat":1}],"root":[2],"options":{"noEmitOnError":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"../file1.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type '\"hello\"' is not assignable to type '30'."}]]],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} //// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -199,15 +211,22 @@ No shapes updated in the builder:: "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../file1.ts": { + "original": { + "version": "-10927263693-export const x: 30 = \"hello\";", + "impliedFormat": 1 + }, "version": "-10927263693-export const x: 30 = \"hello\";", - "signature": "-10927263693-export const x: 30 = \"hello\";" + "signature": "-10927263693-export const x: 30 = \"hello\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -245,6 +264,6 @@ No shapes updated in the builder:: ] }, "version": "FakeTSVersion", - "size": 913 + "size": 961 } diff --git a/tests/baselines/reference/tsc/incremental/generates-typerefs-correctly.js b/tests/baselines/reference/tsc/incremental/generates-typerefs-correctly.js index 47aa82720c4aa..f8bc529b15c35 100644 --- a/tests/baselines/reference/tsc/incremental/generates-typerefs-correctly.js +++ b/tests/baselines/reference/tsc/incremental/generates-typerefs-correctly.js @@ -124,7 +124,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/src/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14267342128-export interface Box {\n unbox(): T\n}\n","signature":"-15554117365-export interface Box {\n unbox(): T;\n}\n"},{"version":"-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n","signature":"-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n"},{"version":"-27771690375-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\n","signature":"-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n"}],"root":[[2,4]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./src/bug.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-14267342128-export interface Box {\n unbox(): T\n}\n","signature":"-15554117365-export interface Box {\n unbox(): T;\n}\n","impliedFormat":1},{"version":"-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n","signature":"-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n","impliedFormat":1},{"version":"-27771690375-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\n","signature":"-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n","impliedFormat":1}],"root":[[2,4]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./src/bug.d.ts"},"version":"FakeTSVersion"} //// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -145,35 +145,43 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/box.ts": { "original": { "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", - "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n", + "impliedFormat": 1 }, "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", - "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n", + "impliedFormat": "commonjs" }, "../src/wrap.ts": { "original": { "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", - "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedFormat": 1 }, "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", - "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedFormat": "commonjs" }, "../src/bug.js": { "original": { "version": "-27771690375-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\n", - "signature": "-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + "signature": "-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n", + "impliedFormat": 1 }, "version": "-27771690375-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\n", - "signature": "-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + "signature": "-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -209,7 +217,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./src/bug.d.ts" }, "version": "FakeTSVersion", - "size": 1674 + "size": 1746 } @@ -279,7 +287,7 @@ exports.something = 1; //// [/src/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14267342128-export interface Box {\n unbox(): T\n}\n","signature":"-15554117365-export interface Box {\n unbox(): T;\n}\n"},{"version":"-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n","signature":"-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n"},{"version":"-25729561895-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\nexport const something = 1;","signature":"-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n"}],"root":[[2,4]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./src/bug.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-14267342128-export interface Box {\n unbox(): T\n}\n","signature":"-15554117365-export interface Box {\n unbox(): T;\n}\n","impliedFormat":1},{"version":"-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n","signature":"-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n","impliedFormat":1},{"version":"-25729561895-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\nexport const something = 1;","signature":"-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n","impliedFormat":1}],"root":[[2,4]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./src/bug.d.ts"},"version":"FakeTSVersion"} //// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -300,35 +308,43 @@ exports.something = 1; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/box.ts": { "original": { "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", - "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n", + "impliedFormat": 1 }, "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", - "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n", + "impliedFormat": "commonjs" }, "../src/wrap.ts": { "original": { "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", - "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedFormat": 1 }, "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", - "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n", + "impliedFormat": "commonjs" }, "../src/bug.js": { "original": { "version": "-25729561895-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\nexport const something = 1;", - "signature": "-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + "signature": "-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n", + "impliedFormat": 1 }, "version": "-25729561895-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\nexport const something = 1;", - "signature": "-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + "signature": "-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -364,6 +380,6 @@ exports.something = 1; "latestChangedDtsFile": "./src/bug.d.ts" }, "version": "FakeTSVersion", - "size": 1729 + "size": 1801 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js index 89e34f12e0d88..24acc4dea90a1 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite-discrepancies.js @@ -8,26 +8,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -99,26 +106,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -187,26 +201,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -278,26 +299,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -366,26 +394,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "1786859709-export class classC {\n prop1 = 1;\n}" + "version": "1786859709-export class classC {\n prop1 = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -501,26 +536,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "1786859709-export class classC {\n prop1 = 1;\n}" + "version": "1786859709-export class classC {\n prop1 = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -647,26 +689,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -738,26 +787,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -826,26 +882,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -917,26 +980,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1005,26 +1075,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "1786859709-export class classC {\n prop1 = 1;\n}" + "version": "1786859709-export class classC {\n prop1 = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1140,26 +1217,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "1786859709-export class classC {\n prop1 = 1;\n}" + "version": "1786859709-export class classC {\n prop1 = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1272,26 +1356,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "1786859709-export class classC {\n prop1 = 1;\n}" + "version": "1786859709-export class classC {\n prop1 = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1407,26 +1498,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "1786859709-export class classC {\n prop1 = 1;\n}" + "version": "1786859709-export class classC {\n prop1 = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1539,26 +1637,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1630,26 +1735,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1732,26 +1844,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1823,26 +1942,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1911,26 +2037,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -2002,26 +2135,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js index 7b8ef0bd5fb45..81b115d7fbb2c 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js @@ -152,7 +152,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,61 +178,75 @@ function someFunc(arguments) { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -290,7 +304,7 @@ function someFunc(arguments) { "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2211 + "size": 2337 } @@ -358,7 +372,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-9508063301-export declare class classC {\n prop: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-9508063301-export declare class classC {\n prop: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -384,53 +398,73 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -568,7 +602,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2921 + "size": 3071 } @@ -598,7 +632,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/src/class.js] file written with same contents //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -624,61 +658,75 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -736,7 +784,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2211 + "size": 2337 } @@ -868,7 +916,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -894,61 +942,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1050,7 +1112,7 @@ exports.classC = classC; "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2927 } @@ -1230,7 +1292,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1256,53 +1318,73 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1396,7 +1478,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2277 + "size": 2427 } @@ -1439,7 +1521,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1465,61 +1547,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1577,7 +1673,7 @@ exports.classC = classC; "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2183 + "size": 2309 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js index d2abc1b2fb60a..924642b415625 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js @@ -153,7 +153,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -179,61 +179,75 @@ function someFunc(arguments) { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -290,7 +304,7 @@ function someFunc(arguments) { ] }, "version": "FakeTSVersion", - "size": 2143 + "size": 2269 } @@ -358,7 +372,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -384,53 +398,73 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -553,7 +587,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] }, "version": "FakeTSVersion", - "size": 2700 + "size": 2850 } @@ -587,7 +621,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -613,61 +647,75 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -724,7 +772,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] }, "version": "FakeTSVersion", - "size": 2143 + "size": 2269 } @@ -859,7 +907,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -885,61 +933,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1040,7 +1102,7 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 2761 + "size": 2887 } @@ -1220,7 +1282,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1246,53 +1308,73 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1371,7 +1453,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 2082 + "size": 2232 } @@ -1417,7 +1499,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1443,61 +1525,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1554,7 +1650,7 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 2143 + "size": 2269 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js index 9baa762b48676..6b73002c9300e 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js @@ -123,7 +123,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -149,40 +149,69 @@ function someFunc(arguments) { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { + "original": { + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": 1 + }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "545032748-export class classC {\n prop = 1;\n}" + "signature": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { + "original": { + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": 1 + }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -236,7 +265,7 @@ function someFunc(arguments) { ] }, "version": "FakeTSVersion", - "size": 1596 + "size": 1782 } @@ -304,7 +333,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -330,56 +359,73 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -495,7 +541,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] }, "version": "FakeTSVersion", - "size": 2580 + "size": 2718 } @@ -527,7 +573,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/src/indirectUse.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -553,48 +599,71 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -648,7 +717,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] }, "version": "FakeTSVersion", - "size": 1823 + "size": 1985 } @@ -774,7 +843,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -800,48 +869,71 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -939,7 +1031,7 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 2441 + "size": 2603 } @@ -1119,7 +1211,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1145,48 +1237,71 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1250,7 +1365,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1856 + "size": 2018 } @@ -1287,7 +1402,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1313,48 +1428,71 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1408,7 +1546,7 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 1823 + "size": 1985 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js index b88761cd4a26e..f3534dbb06870 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite-discrepancies.js @@ -8,26 +8,33 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -99,26 +106,33 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { - "version": "545032748-export class classC {\n prop = 1;\n}" + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { - "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { - "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { - "version": "6714567633-export function writeLog(s: string) {\n}" + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js index 1ee0c553ffa94..e1ca6f6e2dace 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js @@ -57,7 +57,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5,6,7],"emitSignatures":[2,3,4,5,6,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5,6,7],"emitSignatures":[2,3,4,5,6,7]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -83,40 +83,69 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { + "original": { + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": 1 + }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "545032748-export class classC {\n prop = 1;\n}" + "signature": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { + "original": { + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": 1 + }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -207,7 +236,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1697 + "size": 1883 } @@ -317,7 +346,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -343,61 +372,75 @@ function someFunc(arguments) { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -455,7 +498,7 @@ function someFunc(arguments) { "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts" }, "version": "FakeTSVersion", - "size": 2211 + "size": 2337 } @@ -527,7 +570,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -553,61 +596,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -709,7 +766,7 @@ exports.classC = classC; "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2927 } @@ -729,7 +786,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -755,53 +812,73 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -895,7 +972,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2277 + "size": 2427 } @@ -938,7 +1015,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"composite":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"latestChangedDtsFile":"./src/class.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -964,61 +1041,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1076,6 +1167,6 @@ exports.classC = classC; "latestChangedDtsFile": "./src/class.d.ts" }, "version": "FakeTSVersion", - "size": 2183 + "size": 2309 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js index 05b0c77f3b4ab..5cd5e6d0a3955 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js @@ -58,7 +58,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5,6,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5,6,7]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -84,40 +84,69 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { + "original": { + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": 1 + }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "545032748-export class classC {\n prop = 1;\n}" + "signature": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { + "original": { + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": 1 + }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -200,7 +229,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1668 + "size": 1854 } @@ -310,7 +339,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -336,61 +365,75 @@ function someFunc(arguments) { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -447,7 +490,7 @@ function someFunc(arguments) { ] }, "version": "FakeTSVersion", - "size": 2143 + "size": 2269 } @@ -522,7 +565,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -548,61 +591,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -703,7 +760,7 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 2761 + "size": 2887 } @@ -723,7 +780,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,[4],3,[5]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -749,53 +806,73 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -874,7 +951,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 2082 + "size": 2232 } @@ -920,7 +997,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/src/indirectUse.d.ts] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -946,61 +1023,75 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { "original": { "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": 1 }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "8055010000-export declare function writeLog(s: string): void;\n" + "signature": "8055010000-export declare function writeLog(s: string): void;\n", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1057,6 +1148,6 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 2143 + "size": 2269 } diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js index b10ebcc63abc4..aad0f454e1848 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js @@ -57,7 +57,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5,6,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,4,3,5,6,7]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -83,40 +83,69 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { + "original": { + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": 1 + }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "545032748-export class classC {\n prop = 1;\n}" + "signature": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { + "original": { + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": 1 + }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -196,7 +225,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1637 + "size": 1823 } @@ -277,7 +306,7 @@ function someFunc(arguments) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -303,40 +332,69 @@ function someFunc(arguments) { "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { + "original": { + "version": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": 1 + }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "545032748-export class classC {\n prop = 1;\n}" + "signature": "545032748-export class classC {\n prop = 1;\n}", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { + "original": { + "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": 1 + }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}" + "signature": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -390,7 +448,7 @@ function someFunc(arguments) { ] }, "version": "FakeTSVersion", - "size": 1596 + "size": 1782 } @@ -458,7 +516,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/src/indirectUse.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/directuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],3,[5,[{"file":"./src/indirectuse.ts","start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -484,56 +542,73 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": 1 }, "version": "1786859709-export class classC {\n prop1 = 1;\n}", - "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n" + "signature": "-12157283604-export declare class classC {\n prop1: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { "original": { "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -631,7 +706,7 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 2543 + "size": 2681 } @@ -651,7 +726,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"affectedFilesPendingEmit":[2,3]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -677,48 +752,71 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -782,7 +880,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 1856 + "size": 2018 } @@ -819,7 +917,7 @@ exports.classC = classC; //// [/src/project/src/indirectClass.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n","impliedFormat":1},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","impliedFormat":1},{"version":"6714567633-export function writeLog(s: string) {\n}","impliedFormat":1},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,7]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,[7,[{"file":"./src/nochangefilewithemitspecificerror.ts","start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -845,48 +943,71 @@ exports.classC = classC; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/class.ts": { "original": { "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": 1 }, "version": "545032748-export class classC {\n prop = 1;\n}", - "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n" + "signature": "-9508063301-export declare class classC {\n prop: number;\n}\n", + "impliedFormat": "commonjs" }, "./src/indirectclass.ts": { "original": { "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": 1 }, "version": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", - "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" + "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n", + "impliedFormat": "commonjs" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": 1 + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "impliedFormat": "commonjs" }, "./src/nochangefile.ts": { + "original": { + "version": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": 1 + }, "version": "6714567633-export function writeLog(s: string) {\n}", - "signature": "6714567633-export function writeLog(s: string) {\n}" + "signature": "6714567633-export function writeLog(s: string) {\n}", + "impliedFormat": "commonjs" }, "./src/nochangefilewithemitspecificerror.ts": { "original": { "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", "signature": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -940,6 +1061,6 @@ exports.classC = classC; ] }, "version": "FakeTSVersion", - "size": 1823 + "size": 1985 } diff --git a/tests/baselines/reference/tsc/incremental/serializing-error-chains.js b/tests/baselines/reference/tsc/incremental/serializing-error-chains.js index 25f9c1e465a3c..2f6a0ce262fcf 100644 --- a/tests/baselines/reference/tsc/incremental/serializing-error-chains.js +++ b/tests/baselines/reference/tsc/incremental/serializing-error-chains.js @@ -77,7 +77,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"7198220534-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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 ReadonlyArray { readonly length: number }","affectsGlobalScope":true},{"version":"42569361247-declare namespace JSX {\n interface ElementChildrenAttribute { children: {}; }\n interface IntrinsicElements { div: {} }\n}\n\ndeclare var React: any;\n\ndeclare function Component(props: never): any;\ndeclare function Component(props: { children?: number }): any;\n(\n
\n
\n)","affectsGlobalScope":true}],"root":[2],"options":{"jsx":2,"module":99,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":265,"length":9,"messageText":"This JSX tag's 'children' prop expects a single child of type 'never', but multiple children were provided.","category":1,"code":2746},{"file":"./index.tsx","start":265,"length":9,"messageText":"This JSX tag's 'children' prop expects a single child of type 'number | undefined', but multiple children were provided.","category":1,"code":2746},{"file":"./index.tsx","start":265,"length":9,"code":2769,"category":1,"messageText":{"messageText":"No overload matches this call.","category":1,"code":2769,"next":[{"code":2746,"category":1,"messageText":"This JSX tag's 'children' prop expects a single child of type 'never', but multiple children were provided."},{"code":2746,"category":1,"messageText":"This JSX tag's 'children' prop expects a single child of type 'number | undefined', but multiple children were provided."}]},"relatedInformation":[]}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"7198220534-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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 ReadonlyArray { readonly length: number }","affectsGlobalScope":true,"impliedFormat":1},{"version":"42569361247-declare namespace JSX {\n interface ElementChildrenAttribute { children: {}; }\n interface IntrinsicElements { div: {} }\n}\n\ndeclare var React: any;\n\ndeclare function Component(props: never): any;\ndeclare function Component(props: { children?: number }): any;\n(\n
\n
\n)","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"jsx":2,"module":99,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":265,"length":9,"messageText":"This JSX tag's 'children' prop expects a single child of type 'never', but multiple children were provided.","category":1,"code":2746},{"file":"./index.tsx","start":265,"length":9,"messageText":"This JSX tag's 'children' prop expects a single child of type 'number | undefined', but multiple children were provided.","category":1,"code":2746},{"file":"./index.tsx","start":265,"length":9,"code":2769,"category":1,"messageText":{"messageText":"No overload matches this call.","category":1,"code":2769,"next":[{"code":2746,"category":1,"messageText":"This JSX tag's 'children' prop expects a single child of type 'never', but multiple children were provided."},{"code":2746,"category":1,"messageText":"This JSX tag's 'children' prop expects a single child of type 'number | undefined', but multiple children were provided."}]},"relatedInformation":[]}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -90,20 +90,24 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../lib/lib.d.ts": { "original": { "version": "7198220534-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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 ReadonlyArray { readonly length: number }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "7198220534-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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 ReadonlyArray { readonly length: number }", "signature": "7198220534-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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 ReadonlyArray { readonly length: number }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "42569361247-declare namespace JSX {\n interface ElementChildrenAttribute { children: {}; }\n interface IntrinsicElements { div: {} }\n}\n\ndeclare var React: any;\n\ndeclare function Component(props: never): any;\ndeclare function Component(props: { children?: number }): any;\n(\n
\n
\n)", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "42569361247-declare namespace JSX {\n interface ElementChildrenAttribute { children: {}; }\n interface IntrinsicElements { div: {} }\n}\n\ndeclare var React: any;\n\ndeclare function Component(props: never): any;\ndeclare function Component(props: { children?: number }): any;\n(\n
\n
\n)", "signature": "42569361247-declare namespace JSX {\n interface ElementChildrenAttribute { children: {}; }\n interface IntrinsicElements { div: {} }\n}\n\ndeclare var React: any;\n\ndeclare function Component(props: never): any;\ndeclare function Component(props: { children?: number }): any;\n(\n
\n
\n)", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -169,7 +173,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated ] }, "version": "FakeTSVersion", - "size": 2040 + "size": 2076 } diff --git a/tests/baselines/reference/tsc/incremental/ts-file-with-no-default-lib-that-augments-the-global-scope.js b/tests/baselines/reference/tsc/incremental/ts-file-with-no-default-lib-that-augments-the-global-scope.js index 12b927048bb80..5ecb8b27274bd 100644 --- a/tests/baselines/reference/tsc/incremental/ts-file-with-no-default-lib-that-augments-the-global-scope.js +++ b/tests/baselines/reference/tsc/incremental/ts-file-with-no-default-lib-that-augments-the-global-scope.js @@ -66,7 +66,7 @@ export {}; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.esnext.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2443389309-/// \n/// \n\ndeclare global {\n interface Test {\n }\n}\n\nexport {};\n","affectsGlobalScope":true}],"root":[2],"options":{"module":99,"outDir":"./dist","rootDir":"./src","target":99},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.esnext.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2443389309-/// \n/// \n\ndeclare global {\n interface Test {\n }\n}\n\nexport {};\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"module":99,"outDir":"./dist","rootDir":"./src","target":99},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -79,20 +79,24 @@ export {}; "../../lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-2443389309-/// \n/// \n\ndeclare global {\n interface Test {\n }\n}\n\nexport {};\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-2443389309-/// \n/// \n\ndeclare global {\n interface Test {\n }\n}\n\nexport {};\n", "signature": "-2443389309-/// \n/// \n\ndeclare global {\n interface Test {\n }\n}\n\nexport {};\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -114,6 +118,6 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 922 + "size": 958 } diff --git a/tests/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js b/tests/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js index 366ef98d4a3a0..6d4cdc05cc27b 100644 --- a/tests/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tsc/incremental/tsbuildinfo-has-error.js @@ -39,7 +39,7 @@ exports.x = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -52,15 +52,22 @@ exports.x = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -76,7 +83,7 @@ exports.x = 10; ] }, "version": "FakeTSVersion", - "size": 680 + "size": 728 } @@ -84,7 +91,7 @@ exports.x = 10; Change:: tsbuildinfo written has error Input:: //// [/src/project/tsconfig.tsbuildinfo] -Some random string{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +Some random string{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} @@ -95,6 +102,6 @@ exitCode:: ExitStatus.Success //// [/src/project/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-discrepancies.js b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-discrepancies.js index 9821479e0a407..b973a15704506 100644 --- a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-discrepancies.js @@ -9,15 +9,18 @@ CleanBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "version": "5515933561-const x: 20 = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./b.ts": { "version": "2026006654-const y = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -67,15 +70,18 @@ IncrementalBuild: "fileInfos": { "../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "version": "5515933561-const x: 20 = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./b.ts": { "version": "2026006654-const y = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ 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 82fc73e8c15e5..dca7210519078 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,7 +49,7 @@ var y = 10; //// [/src/outFile.tsbuildinfo] -{"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"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"5029505981-const x = 10;","impliedFormat":1},{"version":"2026006654-const y = 10;","impliedFormat":1}],"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] { @@ -60,9 +60,30 @@ var y = 10; "./project/b.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; };", - "./project/a.ts": "5029505981-const x = 10;", - "./project/b.ts": "2026006654-const y = 10;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "5029505981-const x = 10;", + "impliedFormat": 1 + }, + "version": "5029505981-const x = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "2026006654-const y = 10;", + "impliedFormat": 1 + }, + "version": "2026006654-const y = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -84,7 +105,7 @@ var y = 10; "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 837 + "size": 927 } @@ -132,7 +153,7 @@ 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] -{"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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"5029505981-const x = 10;","impliedFormat":1},{"version":"2026006654-const y = 10;","impliedFormat":1}],"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.readable.baseline.txt] { @@ -143,9 +164,30 @@ declare const y = 10; "./project/b.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; };", - "./project/a.ts": "5029505981-const x = 10;", - "./project/b.ts": "2026006654-const y = 10;" + "../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; };", + "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; };", + "impliedFormat": "commonjs" + }, + "./project/a.ts": { + "original": { + "version": "5029505981-const x = 10;", + "impliedFormat": 1 + }, + "version": "5029505981-const x = 10;", + "impliedFormat": "commonjs" + }, + "./project/b.ts": { + "original": { + "version": "2026006654-const y = 10;", + "impliedFormat": 1 + }, + "version": "2026006654-const y = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -168,6 +210,6 @@ declare const y = 10; "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 859 + "size": 949 } diff --git a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js index 8c244ad1d9108..5507a49f106ba 100644 --- a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js +++ b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js @@ -54,7 +54,7 @@ var y = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true},{"version":"2026006654-const y = 10;","signature":"-4332668712-declare const y = 10;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2026006654-const y = 10;","signature":"-4332668712-declare const y = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -68,31 +68,37 @@ var y = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "2026006654-const y = 10;", "signature": "-4332668712-declare const y = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2026006654-const y = 10;", "signature": "-4332668712-declare const y = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -119,7 +125,7 @@ var y = 10; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 987 + "size": 1041 } @@ -145,7 +151,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5515933561-const x: 20 = 10;","signature":"-3041996843-declare const x: 20;\n","affectsGlobalScope":true},{"version":"2026006654-const y = 10;","signature":"-4332668712-declare const y = 10;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./a.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '10' is not assignable to type '20'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[[2,["-4001438729-declare const x = 10;\n"]],[3,[]]],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5515933561-const x: 20 = 10;","signature":"-3041996843-declare const x: 20;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2026006654-const y = 10;","signature":"-4332668712-declare const y = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./a.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type '10' is not assignable to type '20'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[[2,["-4001438729-declare const x = 10;\n"]],[3,[]]],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -159,31 +165,37 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "5515933561-const x: 20 = 10;", "signature": "-3041996843-declare const x: 20;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5515933561-const x: 20 = 10;", "signature": "-3041996843-declare const x: 20;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "2026006654-const y = 10;", "signature": "-4332668712-declare const y = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2026006654-const y = 10;", "signature": "-4332668712-declare const y = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -245,7 +257,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1241 + "size": 1295 } @@ -279,7 +291,7 @@ declare const y = 10; //// [/src/project/b.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true},{"version":"2026006654-const y = 10;","signature":"-4332668712-declare const y = 10;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2026006654-const y = 10;","signature":"-4332668712-declare const y = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -293,31 +305,37 @@ declare const y = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "2026006654-const y = 10;", "signature": "-4332668712-declare const y = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2026006654-const y = 10;", "signature": "-4332668712-declare const y = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -345,6 +363,6 @@ declare const y = 10; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1009 + "size": 1063 } diff --git a/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js b/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js index 4705539b29ff2..00f406276cd9c 100644 --- a/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js +++ b/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js @@ -71,7 +71,7 @@ exports.D = D; //// [/src/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9819564552-export class C { }","signature":"-8650565060-export declare class C {\n}\n"},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts","../file2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-9819564552-export class C { }","signature":"-8650565060-export declare class C {\n}\n","impliedFormat":1},{"version":"-7804761415-export class D { }","signature":"-8611429667-export declare class D {\n}\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} //// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -85,27 +85,33 @@ exports.D = D; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../file1.ts": { "original": { "version": "-9819564552-export class C { }", - "signature": "-8650565060-export declare class C {\n}\n" + "signature": "-8650565060-export declare class C {\n}\n", + "impliedFormat": 1 }, "version": "-9819564552-export class C { }", - "signature": "-8650565060-export declare class C {\n}\n" + "signature": "-8650565060-export declare class C {\n}\n", + "impliedFormat": "commonjs" }, "../file2.ts": { "original": { "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": 1 }, "version": "-7804761415-export class D { }", - "signature": "-8611429667-export declare class D {\n}\n" + "signature": "-8611429667-export declare class D {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -131,7 +137,7 @@ exports.D = D; "latestChangedDtsFile": "./file2.d.ts" }, "version": "FakeTSVersion", - "size": 951 + "size": 1005 } @@ -147,7 +153,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9819564552-export class C { }","signature":"-8650565060-export declare class C {\n}\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../file1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-9819564552-export class C { }","signature":"-8650565060-export declare class C {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./file2.d.ts"},"version":"FakeTSVersion"} //// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -160,19 +166,23 @@ exitCode:: ExitStatus.Success "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../file1.ts": { "original": { "version": "-9819564552-export class C { }", - "signature": "-8650565060-export declare class C {\n}\n" + "signature": "-8650565060-export declare class C {\n}\n", + "impliedFormat": 1 }, "version": "-9819564552-export class C { }", - "signature": "-8650565060-export declare class C {\n}\n" + "signature": "-8650565060-export declare class C {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -193,6 +203,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./file2.d.ts" }, "version": "FakeTSVersion", - "size": 832 + "size": 868 } diff --git a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js index 72c98ec3080ad..da28260d5ec42 100644 --- a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js +++ b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js @@ -120,7 +120,7 @@ function main() { } //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-21256825585-/// \n/// \nfunction main() { }\n","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21256825585-/// \n/// \nfunction main() { }\n","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -142,41 +142,49 @@ function main() { } "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filepresent.ts": { "original": { "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/anotherfilewithsamereferenes.ts": { "original": { "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-21256825585-/// \n/// \nfunction main() { }\n", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-21256825585-/// \n/// \nfunction main() { }\n", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -214,7 +222,7 @@ function main() { } "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 1496 + "size": 1568 } @@ -327,7 +335,7 @@ something(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-24702349751-/// \n/// \nfunction main() { }\nsomething();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-24702349751-/// \n/// \nfunction main() { }\nsomething();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,41 +357,49 @@ something(); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filepresent.ts": { "original": { "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/anotherfilewithsamereferenes.ts": { "original": { "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-24702349751-/// \n/// \nfunction main() { }\nsomething();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-24702349751-/// \n/// \nfunction main() { }\nsomething();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -421,7 +437,7 @@ something(); "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 1508 + "size": 1580 } @@ -488,7 +504,7 @@ something(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-20086051197-/// \n/// \nfunction main() { }\nsomething();something();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-20086051197-/// \n/// \nfunction main() { }\nsomething();something();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2,5]],"referencedMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./src/main.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -510,41 +526,49 @@ something(); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filepresent.ts": { "original": { "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/anotherfilewithsamereferenes.ts": { "original": { "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-20086051197-/// \n/// \nfunction main() { }\nsomething();something();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-20086051197-/// \n/// \nfunction main() { }\nsomething();something();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -582,7 +606,7 @@ something(); "latestChangedDtsFile": "./src/main.d.ts" }, "version": "FakeTSVersion", - "size": 1520 + "size": 1592 } @@ -674,7 +698,7 @@ function foo() { return 20; } //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"517738360-declare function foo(): number;\n","affectsGlobalScope":true},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2,6],[2,4,6]],"referencedMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,5,4],"latestChangedDtsFile":"./src/newFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"5451387573-function foo() { return 20; }","signature":"517738360-declare function foo(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,5]],"options":{"composite":true},"fileIdsList":[[2,6],[2,4,6]],"referencedMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,5,4],"latestChangedDtsFile":"./src/newFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -702,51 +726,61 @@ function foo() { return 20; } "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filepresent.ts": { "original": { "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/anotherfilewithsamereferenes.ts": { "original": { "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/newfile.ts": { "original": { "version": "5451387573-function foo() { return 20; }", "signature": "517738360-declare function foo(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5451387573-function foo() { return 20; }", "signature": "517738360-declare function foo(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -787,7 +821,7 @@ function foo() { return 20; } "latestChangedDtsFile": "./src/newFile.d.ts" }, "version": "FakeTSVersion", - "size": 1736 + "size": 1826 } @@ -852,7 +886,7 @@ function something2() { return 20; } //// [/src/project/src/main.js] file written with same contents //// [/src/project/src/newFile.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true},{"version":"-9011934479-function something2() { return 20; }","signature":"-11412869068-declare function something2(): number;\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"517738360-declare function foo(): number;\n","affectsGlobalScope":true},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true}],"root":[[2,6]],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"latestChangedDtsFile":"./src/fileNotFound.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9011934479-function something2() { return 20; }","signature":"-11412869068-declare function something2(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"5451387573-function foo() { return 20; }","signature":"517738360-declare function foo(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,6]],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"latestChangedDtsFile":"./src/fileNotFound.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -880,61 +914,73 @@ function something2() { return 20; } "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filepresent.ts": { "original": { "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filenotfound.ts": { "original": { "version": "-9011934479-function something2() { return 20; }", "signature": "-11412869068-declare function something2(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-9011934479-function something2() { return 20; }", "signature": "-11412869068-declare function something2(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/anotherfilewithsamereferenes.ts": { "original": { "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/newfile.ts": { "original": { "version": "5451387573-function foo() { return 20; }", "signature": "517738360-declare function foo(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5451387573-function foo() { return 20; }", "signature": "517738360-declare function foo(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3581559188-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -977,7 +1023,7 @@ function something2() { return 20; } "latestChangedDtsFile": "./src/fileNotFound.d.ts" }, "version": "FakeTSVersion", - "size": 1900 + "size": 2008 } @@ -1036,7 +1082,7 @@ something(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true},{"version":"-9011934479-function something2() { return 20; }","signature":"-11412869068-declare function something2(): number;\n","affectsGlobalScope":true},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"5451387573-function foo() { return 20; }","signature":"517738360-declare function foo(): number;\n","affectsGlobalScope":true},{"version":"3987942182-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();something();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true}],"root":[[2,6]],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"latestChangedDtsFile":"./src/fileNotFound.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilewithsamereferenes.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12346563362-function something() { return 10; }","signature":"-4903250974-declare function something(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9011934479-function something2() { return 20; }","signature":"-11412869068-declare function something2(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n","signature":"-11249446897-declare function anotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"5451387573-function foo() { return 20; }","signature":"517738360-declare function foo(): number;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3987942182-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();something();","signature":"-1399491038-declare function main(): void;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,6]],"options":{"composite":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"latestChangedDtsFile":"./src/fileNotFound.d.ts"},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1064,61 +1110,73 @@ something(); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filepresent.ts": { "original": { "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-12346563362-function something() { return 10; }", "signature": "-4903250974-declare function something(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/filenotfound.ts": { "original": { "version": "-9011934479-function something2() { return 20; }", "signature": "-11412869068-declare function something2(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-9011934479-function something2() { return 20; }", "signature": "-11412869068-declare function something2(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/anotherfilewithsamereferenes.ts": { "original": { "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-28237004260-/// \n/// \nfunction anotherFileWithSameReferenes() { }\n", "signature": "-11249446897-declare function anotherFileWithSameReferenes(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/newfile.ts": { "original": { "version": "5451387573-function foo() { return 20; }", "signature": "517738360-declare function foo(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5451387573-function foo() { return 20; }", "signature": "517738360-declare function foo(): number;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { "original": { "version": "3987942182-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();something();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3987942182-/// \n/// \n/// \nfunction main() { }\nsomething();something();foo();something();", "signature": "-1399491038-declare function main(): void;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -1161,6 +1219,6 @@ something(); "latestChangedDtsFile": "./src/fileNotFound.d.ts" }, "version": "FakeTSVersion", - "size": 1911 + "size": 2019 } diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js index 7cad5071ccf2a..2473886a85b18 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project-discrepancies.js @@ -8,15 +8,18 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "version": "777969115-class class2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -39,15 +42,18 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "version": "777969115-class class2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -79,15 +85,18 @@ CleanBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "version": "777969115-class class2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -110,15 +119,18 @@ IncrementalBuild: "fileInfos": { "../../../lib/lib.d.ts": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "version": "777969115-class class2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js index ac61b62e46bba..4a1d09f04de43 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js @@ -69,7 +69,7 @@ var class2 = /** @class */ (function () { //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -83,30 +83,36 @@ var class2 = /** @class */ (function () { "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +133,7 @@ var class2 = /** @class */ (function () { "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 933 + "size": 987 } @@ -176,7 +182,7 @@ exitCode:: ExitStatus.Success //// [/src/projects/project2/class2.js] file written with same contents //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -191,39 +197,47 @@ exitCode:: ExitStatus.Success "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class3.d.ts": { "original": { "version": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469165364-declare class class3 {}", "signature": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -245,7 +259,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 1037 + "size": 1109 } @@ -292,7 +306,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/projects/project2/class2.js] file written with same contents //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -306,30 +320,36 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -348,7 +368,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 929 + "size": 983 } @@ -367,7 +387,7 @@ exitCode:: ExitStatus.Success //// [/src/projects/project2/class2.js] file written with same contents //// [/src/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -382,39 +402,47 @@ exitCode:: ExitStatus.Success "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class3.d.ts": { "original": { "version": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469165364-declare class class3 {}", "signature": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -436,6 +464,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 1037 + "size": 1109 } diff --git a/tests/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js b/tests/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js index 5b3e6c7dd150e..15c6e17079b8e 100644 --- a/tests/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js +++ b/tests/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js @@ -41,7 +41,7 @@ exitCode:: ExitStatus.Success //// [/src/project/.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"options":{"module":1,"target":1,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"options":{"module":1,"target":1,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/.tsbuildinfo.readable.baseline.txt] { @@ -54,15 +54,22 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -83,7 +90,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 753 + "size": 801 } //// [/src/project/src/main.js] diff --git a/tests/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js b/tests/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js index df69cc47950d7..aea016f4f1522 100644 --- a/tests/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js +++ b/tests/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js @@ -41,7 +41,7 @@ exports.x = 10; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"options":{"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"options":{"outDir":"./dist","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -54,15 +54,22 @@ exports.x = 10; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -82,7 +89,7 @@ exports.x = 10; ] }, "version": "FakeTSVersion", - "size": 732 + "size": 780 } diff --git a/tests/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js b/tests/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js index 1cc2f031f1fdc..5753832901ece 100644 --- a/tests/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js +++ b/tests/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js @@ -42,7 +42,7 @@ exports.x = 10; //// [/src/project/built/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"options":{"outDir":"./","rootDir":".."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"options":{"outDir":"./","rootDir":".."},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/built/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -55,15 +55,22 @@ exports.x = 10; "../../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -83,7 +90,7 @@ exports.x = 10; ] }, "version": "FakeTSVersion", - "size": 729 + "size": 777 } diff --git a/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js b/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js index 1d959919f54d6..6c368bc3f8f41 100644 --- a/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js +++ b/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js @@ -56,7 +56,7 @@ Shape signatures in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7660182596-export class class1 {}"],"root":[2],"options":{"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./class1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-7660182596-export class class1 {}","impliedFormat":1}],"root":[2],"options":{"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -69,15 +69,22 @@ Shape signatures in builder refreshed for:: "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class1.ts": { + "original": { + "version": "-7660182596-export class class1 {}", + "impliedFormat": 1 + }, "version": "-7660182596-export class class1 {}", - "signature": "-7660182596-export class class1 {}" + "signature": "-7660182596-export class class1 {}", + "impliedFormat": "commonjs" } }, "root": [ @@ -102,7 +109,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 740 + "size": 788 } diff --git a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js index fd45b37497c47..f79c9e65be3de 100644 --- a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js +++ b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js @@ -83,7 +83,7 @@ Shape signatures in builder refreshed for:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,23 +103,40 @@ Shape signatures in builder refreshed for:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedFormat": 1 + }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;" + "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -178,7 +195,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1147 + "size": 1255 } @@ -277,7 +294,7 @@ console.log("hi"); //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -297,27 +314,41 @@ console.log("hi"); "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -350,7 +381,7 @@ console.log("hi"); ] }, "version": "FakeTSVersion", - "size": 1026 + "size": 1122 } diff --git a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js index b5a10423405f3..46158052c072a 100644 --- a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js +++ b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js @@ -86,7 +86,7 @@ Shape signatures in builder refreshed for:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,23 +106,40 @@ Shape signatures in builder refreshed for:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": 1 + }, "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -169,7 +186,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1020 + "size": 1128 } @@ -272,7 +289,7 @@ console.log("hi"); //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -292,27 +309,41 @@ console.log("hi"); "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -345,7 +376,7 @@ console.log("hi"); ] }, "version": "FakeTSVersion", - "size": 1035 + "size": 1131 } diff --git a/tests/baselines/reference/tsc/incremental/with-only-dts-files.js b/tests/baselines/reference/tsc/incremental/with-only-dts-files.js index b1a257c1b686b..56a135d14b6bb 100644 --- a/tests/baselines/reference/tsc/incremental/with-only-dts-files.js +++ b/tests/baselines/reference/tsc/incremental/with-only-dts-files.js @@ -32,7 +32,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13729955264-export const y = 10;","-10726455937-export const x = 10;"],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -46,19 +46,31 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/another.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./src/main.d.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -79,7 +91,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 747 + "size": 825 } @@ -108,7 +120,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13729955264-export const y = 10;","-10808461502-export const x = 10;export const xy = 100;"],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/another.d.ts","./src/main.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-10808461502-export const x = 10;export const xy = 100;","impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -122,19 +134,31 @@ exitCode:: ExitStatus.Success "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/another.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./src/main.d.ts": { + "original": { + "version": "-10808461502-export const x = 10;export const xy = 100;", + "impliedFormat": 1 + }, "version": "-10808461502-export const x = 10;export const xy = 100;", - "signature": "-10808461502-export const x = 10;export const xy = 100;" + "signature": "-10808461502-export const x = 10;export const xy = 100;", + "impliedFormat": "commonjs" } }, "root": [ @@ -155,6 +179,6 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 769 + "size": 847 } diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js index c01879c5760b1..d944b0a8c19e4 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js @@ -191,6 +191,21 @@ export const y = 10; Output:: /home/src/lib/tsc -p project1 --explainFiles +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -206,6 +221,13 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -221,6 +243,13 @@ File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -236,10 +265,34 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -258,6 +311,13 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts @@ -373,7 +433,7 @@ exports.x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -394,74 +454,103 @@ exports.x = "type1"; "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -499,6 +588,6 @@ exports.x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1763 + "size": 1979 } diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js index f7864aac22cb3..abfa58e8fb57a 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js @@ -152,6 +152,21 @@ export const y = 10; Output:: /home/src/lib/tsc -p project1 --explainFiles +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -178,6 +193,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -204,6 +223,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -230,10 +253,31 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -263,6 +307,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -378,7 +426,7 @@ exports.x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -399,74 +447,103 @@ exports.x = "type1"; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -504,6 +581,6 @@ exports.x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1667 + "size": 1883 } diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js index 95c948bd17ac6..7006320e89b29 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js @@ -191,6 +191,31 @@ export const y = 10; Output:: /home/src/lib/tsc project1/core.d.ts project1/utils.d.ts project1/file.ts project1/index.ts project1/file2.ts --lib es5,dom --traceResolution --explainFiles +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -204,6 +229,13 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -217,6 +249,13 @@ File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -230,6 +269,13 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -243,6 +289,13 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config.js b/tests/baselines/reference/tsc/libraryResolution/without-config.js index e55f6a5d8d971..1284bd16c6ce8 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config.js @@ -152,6 +152,31 @@ export const y = 10; Output:: /home/src/lib/tsc project1/core.d.ts project1/utils.d.ts project1/file.ts project1/index.ts project1/file2.ts --lib es5,dom --traceResolution --explainFiles +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -175,6 +200,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -198,6 +227,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -221,6 +254,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -244,6 +281,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions diff --git a/tests/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js b/tests/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js index 8e195ace5eb1d..3676ba45ae471 100644 --- a/tests/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js +++ b/tests/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js @@ -49,7 +49,7 @@ exports.x = 1; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./test.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-12038591281-export const x = 1;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./test.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-12038591281-export const x = 1;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -62,15 +62,22 @@ exports.x = 1; "../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./test.ts": { + "original": { + "version": "-12038591281-export const x = 1;", + "impliedFormat": 1 + }, "version": "-12038591281-export const x = 1;", - "signature": "-12038591281-export const x = 1;" + "signature": "-12038591281-export const x = 1;", + "impliedFormat": "commonjs" } }, "root": [ @@ -86,7 +93,7 @@ exports.x = 1; ] }, "version": "FakeTSVersion", - "size": 676 + "size": 724 } diff --git a/tests/baselines/reference/tsc/moduleResolution/alternateResult.js b/tests/baselines/reference/tsc/moduleResolution/alternateResult.js index 2c2052ce7230f..1a1846e836a8f 100644 --- a/tests/baselines/reference/tsc/moduleResolution/alternateResult.js +++ b/tests/baselines/reference/tsc/moduleResolution/alternateResult.js @@ -375,7 +375,7 @@ Shape signatures in builder refreshed for:: //// [/home/src/projects/project/index.mjs] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [/home/src/projects/project/tsconfig.tsbuildinfo] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js b/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js index 0816fe3df0c60..722deb743b815 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js @@ -60,7 +60,7 @@ 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":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"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,"impliedFormat":1},{"version":"-3531955686-export { };","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -73,19 +73,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../a.ts": { "original": { "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -106,6 +110,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 796 + "size": 832 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js b/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js index 48e093b0f27af..3cb0dd753d265 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js @@ -46,7 +46,7 @@ exports.m = 3; //// [/alpha/bin/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/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":"-12181672471-export const m: number = 3;","signature":"-6260611917-export declare const m: number;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./src/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/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,"impliedFormat":1},{"version":"-12181672471-export const m: number = 3;","signature":"-6260611917-export declare const m: number;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1],"latestChangedDtsFile":"./src/a.d.ts"},"version":"FakeTSVersion"} //// [/alpha/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -59,19 +59,23 @@ exports.m = 3; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/a.ts": { "original": { "version": "-12181672471-export const m: number = 3;", - "signature": "-6260611917-export declare const m: number;\n" + "signature": "-6260611917-export declare const m: number;\n", + "impliedFormat": 1 }, "version": "-12181672471-export const m: number = 3;", - "signature": "-6260611917-export declare const m: number;\n" + "signature": "-6260611917-export declare const m: number;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -92,6 +96,6 @@ exports.m = 3; "latestChangedDtsFile": "./src/a.d.ts" }, "version": "FakeTSVersion", - "size": 842 + "size": 878 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js index 199d5194e926a..b756fb2454e93 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js @@ -60,7 +60,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/alpha/bin/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../beta/b.ts","../src/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":"-3360792065-export { }","signature":"-3531856636-export {};\n"},{"version":"-5654511483-import * as b from '../../beta/b'","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[3,2,1],"latestChangedDtsFile":"./src/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../../beta/b.ts","../src/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,"impliedFormat":1},{"version":"-3360792065-export { }","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5654511483-import * as b from '../../beta/b'","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[3,2,1],"latestChangedDtsFile":"./src/a.d.ts"},"version":"FakeTSVersion"} //// [/alpha/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -79,27 +79,33 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../beta/b.ts": { "original": { "version": "-3360792065-export { }", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-3360792065-export { }", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/a.ts": { "original": { "version": "-5654511483-import * as b from '../../beta/b'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-5654511483-import * as b from '../../beta/b'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -125,7 +131,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./src/a.d.ts" }, "version": "FakeTSVersion", - "size": 947 + "size": 1001 } //// [/beta/b.d.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js new file mode 100644 index 0000000000000..4b1d7a0d5ba03 --- /dev/null +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js @@ -0,0 +1,138 @@ +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,"impliedFormat":1},{"version":"-3531955686-export { };","signature":"-3531856636-export {};\n","impliedFormat":1}],"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, + "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" + }, + "../a.ts": { + "original": { + "version": "-3531955686-export { };", + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 + }, + "version": "-3531955686-export { };", + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" + } + }, + "root": [ + [ + 2, + "../a.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "latestChangedDtsFile": "./a.d.ts" + }, + "version": "FakeTSVersion", + "size": 821 +} + 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 new file mode 100644 index 0000000000000..22a637c797809 --- /dev/null +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js @@ -0,0 +1,155 @@ +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,"impliedFormat":1},{"version":"4096062741-const y = x;","signature":"-1874842468-declare const y: any;\n","affectsGlobalScope":true,"impliedFormat":1}],"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, + "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" + }, + "../a.ts": { + "original": { + "version": "4096062741-const y = x;", + "signature": "-1874842468-declare const y: any;\n", + "affectsGlobalScope": true, + "impliedFormat": 1 + }, + "version": "4096062741-const y = x;", + "signature": "-1874842468-declare const y: any;\n", + "affectsGlobalScope": true, + "impliedFormat": "commonjs" + } + }, + "root": [ + [ + 2, + "../a.ts" + ] + ], + "options": { + "composite": true, + "outDir": "./" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "latestChangedDtsFile": "./a.d.ts" + }, + "version": "FakeTSVersion", + "size": 858 +} + diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js index 09a7a6f74e14f..b13013c79d561 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js @@ -53,7 +53,7 @@ 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,"declaration":false,"outDir":"./"},"referencedMap":[],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"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,"impliedFormat":1},{"version":"-3531955686-export { };","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":false,"outDir":"./"},"referencedMap":[],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -66,19 +66,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../a.ts": { "original": { "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -96,6 +100,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 781 + "size": 817 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js index fe0de70d6188b..7577968408c28 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js @@ -67,7 +67,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/primary/bin/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../b.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":"-2704852577-export {}","signature":"-3531856636-export {};\n"},{"version":"-4190788607-import * as b from './b'","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../b.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,"impliedFormat":1},{"version":"-2704852577-export {}","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-4190788607-import * as b from './b'","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -86,27 +86,33 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b.ts": { "original": { "version": "-2704852577-export {}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2704852577-export {}", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../a.ts": { "original": { "version": "-4190788607-import * as b from './b'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-4190788607-import * as b from './b'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,6 +138,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 921 + "size": 975 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js index 3e10c473a1d69..7da00e30a73a5 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js @@ -60,7 +60,7 @@ 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":[],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"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,"impliedFormat":1},{"version":"-3531955686-export { };","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -73,19 +73,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../a.ts": { "original": { "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -102,6 +106,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 761 + "size": 797 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js index 90d1d6b5069ec..096a13edb1f85 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js @@ -75,7 +75,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/reference/bin/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9543969340-import * as mod_0 from \"../primary/a\"","signature":"-3531856636-export {};\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9543969340-import * as mod_0 from \"../primary/a\"","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/reference/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -88,19 +88,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b.ts": { "original": { "version": "-9543969340-import * as mod_0 from \"../primary/a\"", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-9543969340-import * as mod_0 from \"../primary/a\"", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -117,6 +121,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 789 + "size": 825 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js index 10c637abe70eb..42f742b31c12b 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js @@ -74,7 +74,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/beta/bin/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"2892088637-import { m } from '@alpha/a'","signature":"-3531856636-export {};\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[[2,[{"file":"../b.ts","start":18,"length":10,"messageText":"Output file '/alpha/bin/a.d.ts' has not been built from source file '/alpha/a.ts'.","category":1,"code":6305}]],1],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"2892088637-import { m } from '@alpha/a'","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[[2,[{"file":"../b.ts","start":18,"length":10,"messageText":"Output file '/alpha/bin/a.d.ts' has not been built from source file '/alpha/a.ts'.","category":1,"code":6305}]],1],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -87,19 +87,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b.ts": { "original": { "version": "2892088637-import { m } from '@alpha/a'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "2892088637-import { m } from '@alpha/a'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,6 +136,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 982 + "size": 1018 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js index 44c29b38c9afc..38290d5def018 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js @@ -68,7 +68,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/beta/bin/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4853599800-import { m } from '../alpha/a'","signature":"-3531856636-export {};\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[[2,[{"file":"../b.ts","start":18,"length":12,"messageText":"Output file '/alpha/bin/a.d.ts' has not been built from source file '/alpha/a.ts'.","category":1,"code":6305}]],1],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4853599800-import { m } from '../alpha/a'","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[[2,[{"file":"../b.ts","start":18,"length":12,"messageText":"Output file '/alpha/bin/a.d.ts' has not been built from source file '/alpha/a.ts'.","category":1,"code":6305}]],1],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -81,19 +81,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b.ts": { "original": { "version": "-4853599800-import { m } from '../alpha/a'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-4853599800-import { m } from '../alpha/a'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -126,6 +130,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 985 + "size": 1021 } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js b/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js index 38be957715b95..b8b58913bf390 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js @@ -78,7 +78,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [/beta/bin/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../alpha/bin/a.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3531955686-export { };",{"version":"-4853599800-import { m } from '../alpha/a'","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[2,[3,[{"file":"../b.ts","start":9,"length":1,"messageText":"Module '\"../alpha/a\"' has no exported member 'm'.","category":1,"code":2305}]],1],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../../alpha/bin/a.d.ts","../b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3531955686-export { };","impliedFormat":1},{"version":"-4853599800-import { m } from '../alpha/a'","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[2,[3,[{"file":"../b.ts","start":9,"length":1,"messageText":"Module '\"../alpha/a\"' has no exported member 'm'.","category":1,"code":2305}]],1],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/beta/bin/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,23 +97,32 @@ Object.defineProperty(exports, "__esModule", { value: true }); "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../alpha/bin/a.d.ts": { + "original": { + "version": "-3531955686-export { };", + "impliedFormat": 1 + }, "version": "-3531955686-export { };", - "signature": "-3531955686-export { };" + "signature": "-3531955686-export { };", + "impliedFormat": "commonjs" }, "../b.ts": { "original": { "version": "-4853599800-import { m } from '../alpha/a'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-4853599800-import { m } from '../alpha/a'", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -151,6 +160,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1030 + "size": 1096 } diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js index 3999d3e087d59..6350e86fe6c8f 100644 --- a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js +++ b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js @@ -70,7 +70,7 @@ exports.App = App; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14760199789-export const App = () =>
;",{"version":"-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,[2,[{"file":"./src/index.tsx","start":25,"length":24,"code":7016,"category":1,"messageText":"Could not find a declaration file for module 'react/jsx-runtime'. '/src/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","impliedFormat":1},{"version":"-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1,"strict":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,[2,[{"file":"./src/index.tsx","start":25,"length":24,"code":7016,"category":1,"messageText":"Could not find a declaration file for module 'react/jsx-runtime'. '/src/project/node_modules/react/jsx-runtime.js' implicitly has an 'any' type."}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -84,24 +84,33 @@ exports.App = App; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" }, "./node_modules/@types/react/index.d.ts": { "original": { "version": "-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", "signature": "-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -136,6 +145,6 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1335 + "size": 1401 } diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js index f91a1e858bc3a..2e58fed80ab55 100644 --- a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js +++ b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js @@ -62,7 +62,7 @@ exports.App = App; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14760199789-export const App = () =>
;",{"version":"-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/index.tsx","./node_modules/@types/react/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","impliedFormat":1},{"version":"-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -76,24 +76,33 @@ exports.App = App; "../../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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" }, "./node_modules/@types/react/index.d.ts": { "original": { "version": "-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", "signature": "-16587767667-\nexport {};\ndeclare global {\n namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n }\n}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -115,6 +124,6 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1081 + "size": 1147 } diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js index c7e217e61f89a..5e988376d98ae 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js @@ -49,6 +49,12 @@ var v = 1 /* E2.V */; +PolledWatches:: +/user/someone/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/someone/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index fdd2da3112d87..ab99aaa78cfc4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -54,7 +54,7 @@ console.log(b.c.d); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ console.log(b.c.d); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -128,15 +145,19 @@ console.log(b.c.d); ] }, "version": "FakeTSVersion", - "size": 919 + "size": 1027 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -219,7 +240,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,23 +263,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -293,7 +331,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 920 + "size": 1028 } @@ -352,7 +390,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -375,23 +413,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -426,7 +481,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 919 + "size": 1027 } @@ -485,7 +540,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -508,23 +563,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -559,7 +631,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 920 + "size": 1028 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js index add448976c65a..b54a722e87acc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js @@ -57,8 +57,12 @@ console.log(b.c.d); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js index 822e832c52f6e..20cabdb9349a2 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -81,7 +81,7 @@ console.log(b.c.d); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-22447130237-export class C\n{\n d = 1;\n}","-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,23 +104,40 @@ console.log(b.c.d); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-22447130237-export class C\n{\n d = 1;\n}", + "impliedFormat": 1 + }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-22447130237-export class C\n{\n d = 1;\n}" + "signature": "-22447130237-export class C\n{\n d = 1;\n}", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": 1 + }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}" + "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -155,15 +172,19 @@ console.log(b.c.d); ] }, "version": "FakeTSVersion", - "size": 918 + "size": 1026 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -259,7 +280,7 @@ exports.C = C; //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -282,35 +303,43 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -357,7 +386,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1285 + "size": 1357 } @@ -437,7 +466,7 @@ exports.C = C; //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -460,35 +489,43 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -535,7 +572,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1283 + "size": 1355 } @@ -613,7 +650,7 @@ exports.C = C; //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -636,35 +673,43 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -711,7 +756,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1285 + "size": 1357 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js index bdab0ae71b573..98ee2094653b5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js @@ -84,8 +84,12 @@ console.log(b.c.d); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 4e3200cb2005d..508c946ce4b9e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -115,7 +115,7 @@ require("./d"); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -146,31 +146,58 @@ require("./d"); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", + "impliedFormat": 1 + }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}" + "signature": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": 1 + }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}" + "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -249,15 +276,19 @@ require("./d"); ] }, "version": "FakeTSVersion", - "size": 1772 + "size": 1940 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -354,7 +385,7 @@ Output:: //// [/user/username/projects/myproject/d.js] file written with same contents //// [/user/username/projects/myproject/e.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -385,51 +416,63 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -474,7 +517,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1791 + "size": 1899 } @@ -549,7 +592,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -580,51 +623,63 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -669,7 +724,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1794 + "size": 1902 } @@ -738,7 +793,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -769,51 +824,63 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -858,7 +925,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1791 + "size": 1899 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js index 082b6b305cfb3..0a3e49cb4c42d 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -118,8 +118,12 @@ require("./d"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js index 3beeef03a53e9..8b811970438d8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js @@ -164,7 +164,7 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -199,35 +199,67 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { + "original": { + "version": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": 1 + }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-4369626085-export interface ITest {\n title: string;\n}" + "signature": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -267,15 +299,25 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1364 + "size": 1562 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -371,7 +413,7 @@ Output:: //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -406,59 +448,73 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -510,7 +566,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2114 + "size": 2240 } @@ -585,7 +641,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -620,59 +676,73 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -724,7 +794,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2112 + "size": 2238 } @@ -791,7 +861,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -826,59 +896,73 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -930,7 +1014,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2114 + "size": 2240 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js index 67930ecf4ba52..f352177e5e7c3 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js @@ -165,10 +165,20 @@ exports.App = App; PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js index c23ef1073e1b8..c352382a0d11e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -182,7 +182,7 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,39 +219,76 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { + "original": { + "version": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": 1 + }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-4369626085-export interface ITest {\n title: string;\n}" + "signature": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -296,15 +333,25 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1543 + "size": 1771 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -406,7 +453,7 @@ Output:: //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -443,67 +490,83 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -560,7 +623,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2471 + "size": 2615 } @@ -638,7 +701,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -675,67 +738,83 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -792,7 +871,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2469 + "size": 2613 } @@ -860,7 +939,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -897,67 +976,83 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1014,7 +1109,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2471 + "size": 2615 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js index 88cff851594ed..14d68bc664e47 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js @@ -183,10 +183,20 @@ exports.App = App; PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js index 05ba53b371cbe..bf8e5ebac91d3 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js @@ -57,7 +57,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": 1 + }, "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,15 +158,25 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1069 + "size": 1177 } PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -243,7 +270,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -263,27 +290,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -317,7 +358,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1084 + "size": 1180 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -398,7 +439,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -418,27 +459,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -490,7 +545,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1243 + "size": 1339 } @@ -563,7 +618,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -583,27 +638,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -637,7 +706,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1075 + "size": 1171 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js index 458dd1f1a3238..26862624ee5da 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js @@ -60,8 +60,18 @@ Output:: PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 7e0175e1e325a..4eeab7f5cf88f 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -58,7 +58,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -81,27 +81,41 @@ export {}; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -137,15 +151,19 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 989 + "size": 1085 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -229,7 +247,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -252,27 +270,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -308,7 +340,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 990 + "size": 1086 } @@ -368,7 +400,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -391,27 +423,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -447,7 +493,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 989 + "size": 1085 } @@ -507,7 +553,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -530,27 +576,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -586,7 +646,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 990 + "size": 1086 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js index ea34172360e18..65584c442df4b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -61,8 +61,12 @@ export {}; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index 8cb0d974c1ec8..66d359f7bec3e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -98,7 +98,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -121,35 +121,43 @@ export {}; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -185,15 +193,19 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 1176 + "size": 1248 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -291,7 +303,7 @@ export declare class C { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -314,35 +326,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -378,7 +398,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1178 + "size": 1250 } @@ -459,7 +479,7 @@ export declare class C { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -482,35 +502,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -546,7 +574,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1176 + "size": 1248 } @@ -627,7 +655,7 @@ export declare class C { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -650,35 +678,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -714,7 +750,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1178 + "size": 1250 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js index 1b8a305c50b8a..3b8faaff703f0 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js @@ -101,8 +101,12 @@ export {}; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 968a5b1edc71c..0f921b6b9dc85 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -145,7 +145,7 @@ import "./d"; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,51 +176,63 @@ import "./d"; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -300,15 +312,19 @@ import "./d"; ] }, "version": "FakeTSVersion", - "size": 2313 + "size": 2421 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -430,7 +446,7 @@ export interface Coords { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -461,51 +477,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -585,7 +613,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 2310 + "size": 2418 } @@ -682,7 +710,7 @@ export interface Coords { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -713,51 +741,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -837,7 +877,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 2313 + "size": 2421 } @@ -934,7 +974,7 @@ export interface Coords { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -965,51 +1005,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1089,7 +1141,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 2310 + "size": 2418 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index e934bf61b4a1f..a066c6b55b7e0 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -148,8 +148,12 @@ import "./d"; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js index 2b7e32ee278eb..5e1b2eea61660 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -195,7 +195,7 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -230,59 +230,73 @@ export declare class App { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -323,15 +337,25 @@ export declare class App { ] }, "version": "FakeTSVersion", - "size": 1911 + "size": 2037 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -426,7 +450,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -461,59 +485,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -554,7 +592,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 1913 + "size": 2039 } @@ -624,7 +662,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -659,59 +697,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -752,7 +804,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 1911 + "size": 2037 } @@ -822,7 +874,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -857,59 +909,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -950,7 +1016,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 1913 + "size": 2039 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js index c3cad2ad146bf..078d7acf7155f 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js @@ -196,10 +196,20 @@ export declare class App { PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index cf805aaf1657b..b89e5a4f875db 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -222,7 +222,7 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,67 +259,83 @@ export declare class App { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -365,15 +381,25 @@ export declare class App { ] }, "version": "FakeTSVersion", - "size": 2268 + "size": 2412 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -473,7 +499,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -510,67 +536,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -616,7 +658,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2270 + "size": 2414 } @@ -687,7 +729,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -724,67 +766,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -830,7 +888,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2268 + "size": 2412 } @@ -901,7 +959,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -938,67 +996,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1044,7 +1118,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2270 + "size": 2414 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js index 2836be24007e9..7aacb71a047b5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js @@ -223,10 +223,20 @@ export declare class App { PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js index e9c47f4ba0d5f..b99f38e3ad549 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js @@ -57,7 +57,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": 1 + }, "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -142,15 +159,25 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1088 + "size": 1196 } PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -245,7 +272,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -265,31 +292,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -324,7 +362,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1154 + "size": 1238 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -420,7 +458,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -440,31 +478,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -517,7 +566,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1313 + "size": 1397 } @@ -591,7 +640,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -611,31 +660,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -670,7 +730,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1145 + "size": 1229 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js index e9bf6d12006c4..53d081981979a 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js @@ -60,8 +60,18 @@ Output:: PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 7f275445009f6..4be9b07ecc939 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -54,7 +54,7 @@ console.log(b.c.d); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ console.log(b.c.d); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -125,15 +142,19 @@ console.log(b.c.d); ] }, "version": "FakeTSVersion", - "size": 858 + "size": 966 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -220,7 +241,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -243,23 +264,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -303,7 +341,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 985 + "size": 1093 } @@ -363,7 +401,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -386,23 +424,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -434,7 +489,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 858 + "size": 966 } @@ -499,7 +554,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -522,23 +577,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -582,7 +654,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 985 + "size": 1093 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js index 09183c4f36b88..434f34dd09a41 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js @@ -57,8 +57,12 @@ console.log(b.c.d); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js index 950bb33b2fbb5..3664c8e624bc6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -81,7 +81,7 @@ console.log(b.c.d); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-22447130237-export class C\n{\n d = 1;\n}","-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,23 +104,40 @@ console.log(b.c.d); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-22447130237-export class C\n{\n d = 1;\n}", + "impliedFormat": 1 + }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-22447130237-export class C\n{\n d = 1;\n}" + "signature": "-22447130237-export class C\n{\n d = 1;\n}", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": 1 + }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}" + "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -152,15 +169,19 @@ console.log(b.c.d); ] }, "version": "FakeTSVersion", - "size": 857 + "size": 965 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -255,7 +276,7 @@ exports.C = C; //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -278,35 +299,43 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -350,7 +379,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1224 + "size": 1296 } @@ -424,7 +453,7 @@ exports.C = C; //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -447,31 +476,42 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -503,7 +543,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1045 + "size": 1129 } @@ -582,7 +622,7 @@ exports.C = C; //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -605,31 +645,42 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -673,7 +724,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1173 + "size": 1257 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js index 2cde645e0c265..bbee79ab8b96e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js @@ -84,8 +84,12 @@ console.log(b.c.d); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 65e7fd5574b83..64b14eec01fcb 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -115,7 +115,7 @@ require("./d"); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -146,31 +146,58 @@ require("./d"); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", + "impliedFormat": 1 + }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}" + "signature": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": 1 + }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}" + "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -246,15 +273,19 @@ require("./d"); ] }, "version": "FakeTSVersion", - "size": 1711 + "size": 1879 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -350,7 +381,7 @@ Output:: //// [/user/username/projects/myproject/d.js] file written with same contents //// [/user/username/projects/myproject/e.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -381,51 +412,63 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -467,7 +510,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1730 + "size": 1838 } @@ -556,7 +599,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -587,39 +630,60 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -695,7 +759,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1997 + "size": 2141 } @@ -769,7 +833,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -800,39 +864,60 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -874,7 +959,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1494 + "size": 1638 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js index 541d285ef2fc5..1b983c084c845 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -118,8 +118,12 @@ require("./d"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js index 95d9c74aec8c0..8c7be95ac0e07 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js @@ -164,7 +164,7 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -199,35 +199,67 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { + "original": { + "version": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": 1 + }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-4369626085-export interface ITest {\n title: string;\n}" + "signature": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -264,15 +296,25 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1303 + "size": 1501 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -367,7 +409,7 @@ Output:: //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -402,59 +444,73 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -503,7 +559,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2053 + "size": 2179 } @@ -572,7 +628,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -607,43 +663,69 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -680,7 +762,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1468 + "size": 1642 } @@ -754,7 +836,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -789,43 +871,69 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -874,7 +982,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1690 + "size": 1864 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js index 938c2e16cddf9..5d9ceb7a4c66e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js @@ -165,10 +165,20 @@ exports.App = App; PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js index d659bfe10c59f..6544901843b96 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -182,7 +182,7 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,39 +219,76 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { + "original": { + "version": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": 1 + }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-4369626085-export interface ITest {\n title: string;\n}" + "signature": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -293,15 +330,25 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1482 + "size": 1710 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -402,7 +449,7 @@ Output:: //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -439,67 +486,83 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -553,7 +616,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 2410 + "size": 2554 } @@ -625,7 +688,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -662,47 +725,78 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -744,7 +838,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1647 + "size": 1851 } @@ -821,7 +915,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -858,47 +952,78 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -952,7 +1077,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1869 + "size": 2073 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js index 1820fba2151b2..6d8e8febb54bf 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js @@ -183,10 +183,20 @@ exports.App = App; PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js index 6aa9d7db2b7ea..279d1727ac84c 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js @@ -57,7 +57,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": 1 + }, "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,15 +157,25 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1020 + "size": 1128 } PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -241,7 +268,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -261,27 +288,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -314,7 +355,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1035 + "size": 1131 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -394,7 +435,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -414,27 +455,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -485,7 +540,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1194 + "size": 1290 } @@ -557,7 +612,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -577,27 +632,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -630,7 +699,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1026 + "size": 1122 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js index 21592fc23bf95..fd7a7588e2913 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js @@ -60,8 +60,18 @@ Output:: PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 72486e30a4efc..3a98db2803476 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -58,7 +58,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -81,27 +81,41 @@ export {}; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -136,15 +150,19 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1036 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -233,7 +251,7 @@ Output:: //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -256,27 +274,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -323,7 +355,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1067 + "size": 1163 } @@ -385,7 +417,7 @@ Output:: //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -408,27 +440,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -463,7 +509,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1036 } @@ -530,7 +576,7 @@ Output:: //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -553,27 +599,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -620,7 +680,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1067 + "size": 1163 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js index cae932000fb78..58c82eafe25cb 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -61,8 +61,12 @@ export {}; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index 53bbfc3be9b3b..8653a296b5626 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -98,7 +98,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -121,35 +121,43 @@ export {}; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -184,15 +192,19 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 1127 + "size": 1199 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -295,7 +307,7 @@ export declare class C { //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -318,35 +330,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -393,7 +413,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1255 + "size": 1327 } @@ -476,7 +496,7 @@ export declare class C { //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -499,35 +519,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -562,7 +590,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1127 + "size": 1199 } @@ -650,7 +678,7 @@ export declare class C { //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -673,35 +701,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -748,7 +784,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1255 + "size": 1327 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js index d0913487c41ca..8bcfd5e225981 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js @@ -101,8 +101,12 @@ export {}; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 4d6ea34131c85..43397d1f7a0d2 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -145,7 +145,7 @@ import "./d"; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,51 +176,63 @@ import "./d"; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -299,15 +311,19 @@ import "./d"; ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2372 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -416,7 +432,7 @@ export interface Coords { //// [/user/username/projects/myproject/d.d.ts] file written with same contents //// [/user/username/projects/myproject/e.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -447,51 +463,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -536,7 +564,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 1761 + "size": 1869 } @@ -641,7 +669,7 @@ export interface Coords { //// [/user/username/projects/myproject/d.d.ts] file written with same contents //// [/user/username/projects/myproject/e.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -672,51 +700,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -795,7 +835,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2372 } @@ -885,7 +925,7 @@ export interface Coords { //// [/user/username/projects/myproject/d.d.ts] file written with same contents //// [/user/username/projects/myproject/e.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -916,51 +956,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1005,7 +1057,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 1761 + "size": 1869 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index 89dbc219a86db..97fbb3aa7b6aa 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -148,8 +148,12 @@ import "./d"; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js index 69d46a72098af..6167eb42188ba 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -195,7 +195,7 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -230,59 +230,73 @@ export declare class App { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -322,15 +336,25 @@ export declare class App { ] }, "version": "FakeTSVersion", - "size": 1862 + "size": 1988 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -433,7 +457,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -468,59 +492,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -572,7 +610,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2084 + "size": 2210 } @@ -653,7 +691,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -688,59 +726,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -780,7 +832,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 1862 + "size": 1988 } @@ -866,7 +918,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -901,59 +953,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1005,7 +1071,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2084 + "size": 2210 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js index d53dd7d98a9c7..4086fd7d4f78e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js @@ -196,10 +196,20 @@ export declare class App { PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index 0e54bab09ae9a..82d2759aa557d 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -222,7 +222,7 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,67 +259,83 @@ export declare class App { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -364,15 +380,25 @@ export declare class App { ] }, "version": "FakeTSVersion", - "size": 2219 + "size": 2363 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -481,7 +507,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -518,67 +544,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -635,7 +677,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2441 + "size": 2585 } @@ -720,7 +762,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -757,67 +799,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -862,7 +920,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2219 + "size": 2363 } @@ -952,7 +1010,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -989,67 +1047,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1106,7 +1180,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2441 + "size": 2585 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js index d8295c5ccc6ce..70775cca67883 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js @@ -223,10 +223,20 @@ export declare class App { PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js index b9ee7f4b6add6..4a883caed4fc7 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js @@ -57,7 +57,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": 1 + }, "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,15 +158,25 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1039 + "size": 1147 } PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -243,7 +270,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -263,31 +290,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -321,7 +359,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1105 + "size": 1189 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -416,7 +454,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -436,31 +474,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -512,7 +561,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1348 } @@ -585,7 +634,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -605,31 +654,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -663,7 +723,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1096 + "size": 1180 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js index 1e150b6d7108f..a3c8bdc2d02df 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js @@ -60,8 +60,18 @@ Output:: PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index ea67a130ce424..f8a5ed062d8e4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -54,7 +54,7 @@ console.log(b.c.d); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ console.log(b.c.d); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -125,15 +142,19 @@ console.log(b.c.d); ] }, "version": "FakeTSVersion", - "size": 858 + "size": 966 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -221,7 +242,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -244,23 +265,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -304,7 +342,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 985 + "size": 1093 } @@ -365,7 +403,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -388,23 +426,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -436,7 +491,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 858 + "size": 966 } @@ -502,7 +557,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -525,23 +580,40 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -585,7 +657,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 985 + "size": 1093 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js index 4daeb3e4aeec0..d2020a3d17178 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js @@ -57,8 +57,12 @@ console.log(b.c.d); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js index 3ec5a2d3d29e5..3b246b7e616ec 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -81,7 +81,7 @@ console.log(b.c.d); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-22447130237-export class C\n{\n d = 1;\n}","-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,23 +104,40 @@ console.log(b.c.d); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-22447130237-export class C\n{\n d = 1;\n}", + "impliedFormat": 1 + }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-22447130237-export class C\n{\n d = 1;\n}" + "signature": "-22447130237-export class C\n{\n d = 1;\n}", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": 1 + }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}" + "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -152,15 +169,19 @@ console.log(b.c.d); ] }, "version": "FakeTSVersion", - "size": 857 + "size": 965 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -254,7 +275,7 @@ exports.C = C; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -277,27 +298,41 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": 1 + }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}" + "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -341,7 +376,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1069 + "size": 1165 } @@ -415,7 +450,7 @@ exports.C = C; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -438,27 +473,41 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": 1 + }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}" + "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -490,7 +539,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 941 + "size": 1037 } @@ -569,7 +618,7 @@ exports.C = C; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","impliedFormat":1}],"root":[[2,4]],"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -592,27 +641,41 @@ exports.C = C; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": 1 + }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}" + "signature": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": 1 + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "impliedFormat": "commonjs" } }, "root": [ @@ -656,7 +719,7 @@ exports.C = C; ] }, "version": "FakeTSVersion", - "size": 1069 + "size": 1165 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js index 1f8bce1b8e7b9..6a984f9253286 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js @@ -84,8 +84,12 @@ console.log(b.c.d); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 7d4ed65b22aba..927988d3b446b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -115,7 +115,7 @@ require("./d"); //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -146,31 +146,58 @@ require("./d"); "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", + "impliedFormat": 1 + }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}" + "signature": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": 1 + }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}" + "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -246,15 +273,19 @@ require("./d"); ] }, "version": "FakeTSVersion", - "size": 1711 + "size": 1879 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -347,7 +378,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -378,35 +409,59 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": 1 + }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}" + "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -448,7 +503,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1373 + "size": 1529 } @@ -537,7 +592,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -568,35 +623,59 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": 1 + }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}" + "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -672,7 +751,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1876 + "size": 2032 } @@ -746,7 +825,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","impliedFormat":1},{"version":"-5185546240-import \"./d\";","impliedFormat":1}],"root":[[2,6]],"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -777,35 +856,59 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": 1 + }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}" + "signature": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": 1 + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "impliedFormat": "commonjs" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": 1 + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "impliedFormat": "commonjs" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "impliedFormat": 1 + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-5185546240-import \"./d\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -847,7 +950,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1373 + "size": 1529 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js index 14f0b0cf4d2a0..978217d0e529b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -118,8 +118,12 @@ require("./d"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js index 48f235ffabb5b..50742fc9fb13b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js @@ -164,7 +164,7 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -199,35 +199,67 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { + "original": { + "version": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": 1 + }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-4369626085-export interface ITest {\n title: string;\n}" + "signature": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -264,15 +296,25 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1303 + "size": 1501 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -363,7 +405,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -398,39 +440,68 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -479,7 +550,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1613 + "size": 1799 } @@ -548,7 +619,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -583,39 +654,68 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -652,7 +752,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1391 + "size": 1577 } @@ -726,7 +826,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[7],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -761,39 +861,68 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -842,7 +971,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1613 + "size": 1799 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js index 21f95a50a1a7c..d9788d3d2b08f 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js @@ -165,10 +165,20 @@ exports.App = App; PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js index a536a2999ebd2..74c68a73798bf 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -182,7 +182,7 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -219,39 +219,76 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { + "original": { + "version": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": 1 + }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-4369626085-export interface ITest {\n title: string;\n}" + "signature": "-4369626085-export interface ITest {\n title: string;\n}", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -293,15 +330,25 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1482 + "size": 1710 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -397,7 +444,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -434,43 +481,77 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -524,7 +605,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1792 + "size": 2008 } @@ -596,7 +677,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -633,43 +714,77 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -711,7 +826,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1570 + "size": 1786 } @@ -788,7 +903,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","impliedFormat":1}],"root":[8],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -825,43 +940,77 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { + "original": { + "version": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": 1 + }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-10750058173-export * from \"./toolsinterface\";" + "signature": "-10750058173-export * from \"./toolsinterface\";", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": 1 + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-5078933600-export * from \"./tools/public\";", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": 1 + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": 1 + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "impliedFormat": 1 + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9530042629-export * from \"./data\";", + "impliedFormat": "commonjs" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": 1 + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "impliedFormat": "commonjs" } }, "root": [ @@ -915,7 +1064,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1792 + "size": 2008 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js index 0944a7ab8a97f..eaf66fcd6da2f 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js @@ -183,10 +183,20 @@ exports.App = App; PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js index 25780f4b12092..7feea4c1208bd 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js @@ -57,7 +57,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": 1 + }, "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,15 +157,25 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1020 + "size": 1128 } PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -242,7 +269,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -262,27 +289,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -315,7 +356,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1035 + "size": 1131 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -396,7 +437,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -416,27 +457,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -487,7 +542,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1194 + "size": 1290 } @@ -560,7 +615,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -580,27 +635,41 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -633,7 +702,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1026 + "size": 1122 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js index 9a1f5f81bbe05..21a240c44f4e3 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js @@ -60,8 +60,18 @@ Output:: PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 43cc50237e9dd..d8c4f9f6faa90 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -58,7 +58,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -81,27 +81,41 @@ export {}; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -136,15 +150,19 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1036 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -234,7 +252,7 @@ Output:: //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -257,27 +275,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -324,7 +356,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1067 + "size": 1163 } @@ -387,7 +419,7 @@ Output:: //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18774426152-export class C\n{\n d: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18774426152-export class C\n{\n d: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -410,27 +442,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": 1 + }, "version": "-18774426152-export class C\n{\n d: number;\n}", - "signature": "-18774426152-export class C\n{\n d: number;\n}" + "signature": "-18774426152-export class C\n{\n d: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -465,7 +511,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 940 + "size": 1036 } @@ -533,7 +579,7 @@ Output:: //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-21444928214-export class C\n{\n d2: number;\n}","-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}",{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.d.ts","./b.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-21444928214-export class C\n{\n d2: number;\n}","impliedFormat":1},{"version":"-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -556,27 +602,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.d.ts": { + "original": { + "version": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": 1 + }, "version": "-21444928214-export class C\n{\n d2: number;\n}", - "signature": "-21444928214-export class C\n{\n d2: number;\n}" + "signature": "-21444928214-export class C\n{\n d2: number;\n}", + "impliedFormat": "commonjs" }, "./b.d.ts": { + "original": { + "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": 1 + }, "version": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", - "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}" + "signature": "-1688906387-import {C} from './c';\nexport class B\n{\n c: C;\n}", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -623,7 +683,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1067 + "size": 1163 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js index b08a10f36439a..9da6a7ba838a6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -61,8 +61,12 @@ export {}; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index 1d5e03dac7ce2..bd089de9c0b35 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -98,7 +98,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -121,35 +121,43 @@ export {}; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -184,15 +192,19 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 1127 + "size": 1199 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -295,7 +307,7 @@ export declare class C { //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -318,35 +330,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -393,7 +413,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1255 + "size": 1327 } @@ -476,7 +496,7 @@ export declare class C { //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,4,3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -499,35 +519,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": 1 }, "version": "-22447130237-export class C\n{\n d = 1;\n}", - "signature": "-6977846840-export declare class C {\n d: number;\n}\n" + "signature": "-6977846840-export declare class C {\n d: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -562,7 +590,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1127 + "size": 1199 } @@ -650,7 +678,7 @@ export declare class C { //// [/user/username/projects/myproject/b.d.ts] file written with same contents //// [/user/username/projects/myproject/a.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n","impliedFormat":1},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n","impliedFormat":1},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./a.ts","start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]],3,2]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -673,35 +701,43 @@ export declare class C { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": 1 }, "version": "-22846341163-export class C\n{\n d2 = 1;\n}", - "signature": "-4637923302-export declare class C {\n d2: number;\n}\n" + "signature": "-4637923302-export declare class C {\n d2: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": 1 }, "version": "-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}", - "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" + "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -748,7 +784,7 @@ export declare class C { ] }, "version": "FakeTSVersion", - "size": 1255 + "size": 1327 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js index 797f62be44cd9..eda5b3acdf279 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js @@ -101,8 +101,12 @@ export {}; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 49965d1eda010..ac05453863127 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -145,7 +145,7 @@ import "./d"; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,51 +176,63 @@ import "./d"; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -299,15 +311,19 @@ import "./d"; ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2372 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -416,7 +432,7 @@ export interface Coords { //// [/user/username/projects/myproject/d.d.ts] file written with same contents //// [/user/username/projects/myproject/e.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -447,51 +463,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -536,7 +564,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 1761 + "size": 1869 } @@ -641,7 +669,7 @@ export interface Coords { //// [/user/username/projects/myproject/d.d.ts] file written with same contents //// [/user/username/projects/myproject/e.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,[4,[{"file":"./c.ts","start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"file":"./d.ts","start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -672,51 +700,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}", - "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n" + "signature": "8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -795,7 +835,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2372 } @@ -885,7 +925,7 @@ export interface Coords { //// [/user/username/projects/myproject/d.d.ts] file written with same contents //// [/user/username/projects/myproject/e.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n","impliedFormat":1},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n","impliedFormat":1},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n","impliedFormat":1},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n","impliedFormat":1}],"root":[[2,6]],"options":{"declaration":true},"fileIdsList":[[2],[3],[4],[5]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -916,51 +956,63 @@ export interface Coords { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": 1 }, "version": "2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}", - "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n" + "signature": "696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": 1 }, "version": "-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}", - "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" + "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n", + "impliedFormat": "commonjs" }, "./c.ts": { "original": { "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": 1 }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n", + "impliedFormat": "commonjs" }, "./d.ts": { "original": { "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./e.ts": { "original": { "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": 1 }, "version": "-5185546240-import \"./d\";", - "signature": "-3619301366-import \"./d\";\n" + "signature": "-3619301366-import \"./d\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1005,7 +1057,7 @@ export interface Coords { ] }, "version": "FakeTSVersion", - "size": 1761 + "size": 1869 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index 0eaacc80ce449..a882eea62923a 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -148,8 +148,12 @@ import "./d"; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js index 0967d980eed8e..71859118adcb9 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -195,7 +195,7 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -230,59 +230,73 @@ export declare class App { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -322,15 +336,25 @@ export declare class App { ] }, "version": "FakeTSVersion", - "size": 1862 + "size": 1988 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -433,7 +457,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -468,59 +492,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -572,7 +610,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2084 + "size": 2210 } @@ -653,7 +691,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -688,59 +726,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -780,7 +832,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 1862 + "size": 1988 } @@ -866,7 +918,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[7],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -901,59 +953,73 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1005,7 +1071,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2084 + "size": 2210 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js index 218a45aa6c754..f0d6702094525 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js @@ -196,10 +196,20 @@ export declare class App { PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index dd60f25126f5d..dc7bf2f9632d7 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -222,7 +222,7 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,67 +259,83 @@ export declare class App { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -364,15 +380,25 @@ export declare class App { ] }, "version": "FakeTSVersion", - "size": 2219 + "size": 2363 } PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -481,7 +507,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -518,67 +544,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -635,7 +677,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2441 + "size": 2585 } @@ -720,7 +762,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -757,67 +799,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": 1 }, "version": "-4369626085-export interface ITest {\n title: string;\n}", - "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" + "signature": "-2463740027-export interface ITest {\n title: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -862,7 +920,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2219 + "size": 2363 } @@ -952,7 +1010,7 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n","impliedFormat":1},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n","impliedFormat":1},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n","impliedFormat":1},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n","impliedFormat":1},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n","impliedFormat":1},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n","impliedFormat":1},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n","impliedFormat":1}],"root":[8],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":5,"code":2561,"category":1,"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?"}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -989,67 +1047,83 @@ export interface ITest { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": 1 }, "version": "-3501597171-export interface ITest {\n title2: string;\n}", - "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" + "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n", + "impliedFormat": "commonjs" }, "./lib1/tools/public.ts": { "original": { "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": 1 }, "version": "-10750058173-export * from \"./toolsinterface\";", - "signature": "-11154536019-export * from \"./toolsinterface\";\n" + "signature": "-11154536019-export * from \"./toolsinterface\";\n", + "impliedFormat": "commonjs" }, "./lib1/public.ts": { "original": { "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": 1 }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-4396051542-export * from \"./tools/public\";\n" + "signature": "-4396051542-export * from \"./tools/public\";\n", + "impliedFormat": "commonjs" }, "./lib2/data2.ts": { "original": { "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": 1 }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/data.ts": { "original": { "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": 1 }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n", + "impliedFormat": "commonjs" }, "./lib2/public.ts": { "original": { "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": 1 }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9548728731-export * from \"./data\";\n" + "signature": "-9548728731-export * from \"./data\";\n", + "impliedFormat": "commonjs" }, "./app.ts": { "original": { "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": 1 }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -1106,7 +1180,7 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2441 + "size": 2585 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js index d53c22f1ba94b..c09eaf84c8bcc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js @@ -223,10 +223,20 @@ export declare class App { PolledWatches:: +/user/username/projects/myproject/lib1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib1/tools/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/lib2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js index 91afa31580bcb..d84ed6c807b26 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js @@ -57,7 +57,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -77,23 +77,40 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { + "original": { + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": 1 + }, "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", - "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { + "original": { + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": 1 + }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "9084524823-console.log(\"hi\");\nexport { }\n" + "signature": "9084524823-console.log(\"hi\");\nexport { }\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,15 +158,25 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1039 + "size": 1147 } PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -244,7 +271,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -264,31 +291,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -322,7 +360,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1105 + "size": 1189 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -418,7 +456,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -438,31 +476,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -514,7 +563,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1348 } @@ -588,7 +637,7 @@ Output:: //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5014788164-export interface A {\n name: string;\n}\n","impliedFormat":1},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -608,31 +657,42 @@ Output:: "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../shared/types/db.ts": { + "original": { + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": 1 + }, "version": "-5014788164-export interface A {\n name: string;\n}\n", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" + "signature": "-5014788164-export interface A {\n name: string;\n}\n", + "impliedFormat": "commonjs" }, "../src/main.ts": { "original": { "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/other.ts": { "original": { "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "9084524823-console.log(\"hi\");\nexport { }\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -666,7 +726,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1096 + "size": 1180 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js index 793ee02cf206d..065ed4d4cba03 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js @@ -60,8 +60,18 @@ Output:: PolledWatches:: /user/username/projects/noEmitOnError/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/noEmitOnError/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/shared/types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/noEmitOnError/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js index 7ef97aa7b2be4..683c6683c824a 100644 --- a/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js @@ -52,6 +52,9 @@ CreatingProgramWith:: options: {"composite":true,"removeComments":true,"watch":true,"project":"/users/user/projects/myproject/src","extendedDiagnostics":true,"configFilePath":"/users/user/projects/myproject/src/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/index.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /users/user/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/myproject/node_modules/@types 1 undefined Type roots @@ -78,7 +81,7 @@ export declare const x = 10; //// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"6873164248-// some comment\nexport const x = 10;\n","signature":"-6821242887-export declare const x = 10;\n"}],"root":[2],"options":{"composite":true,"removeComments":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"6873164248-// some comment\nexport const x = 10;\n","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"removeComments":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/users/user/projects/myproject/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,19 +94,23 @@ export declare const x = 10; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "6873164248-// some comment\nexport const x = 10;\n", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "6873164248-// some comment\nexport const x = 10;\n", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -124,17 +131,23 @@ export declare const x = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 787 + "size": 823 } PolledWatches:: /users/user/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/user/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/user/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/users/user/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /users/user/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js index d08d6a94a3631..f209bf6df7765 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js @@ -89,8 +89,14 @@ exports.App = App; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/react/Jsx-runtime/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js index eb52134550134..0a816afc5c117 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js @@ -73,6 +73,8 @@ a_2.b; PolledWatches:: c:/project/node_modules/@types: *new* {"pollingInterval":500} +c:/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: c:/a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js index a852b023bc257..5598c10511545 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js @@ -73,6 +73,8 @@ a_2.b; PolledWatches:: C:/project/node_modules/@types: *new* {"pollingInterval":500} +C:/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: C:/a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js index 492906d765662..e65b118f7fe72 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js @@ -104,10 +104,16 @@ System.register("b", ["XY/a", "link/a"], function (exports_3, context_3) { PolledWatches:: +/user/username/projects/myproject/XY/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js index c5b8e96b521a1..02b05a124eb5d 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js @@ -84,8 +84,12 @@ link_1.b; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js index c330827ffde5b..510997e6b0a96 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js @@ -59,8 +59,12 @@ new logger_1.logger(); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js index 6fbd761335476..0ee9217b939c6 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js @@ -104,10 +104,16 @@ System.register("b", ["XY/a", "link/a"], function (exports_3, context_3) { PolledWatches:: +/user/username/projects/myproject/XY/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js index 0f3c728285294..9040b03b27a92 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js @@ -84,8 +84,12 @@ link_1.b; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js index 9e9a72d01e597..d663c1f1acb24 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js @@ -108,12 +108,18 @@ System.register("XY/a", [], function (exports_3, context_3) { PolledWatches:: +/user/username/projects/myproject/XY/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/yX: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js index 94a19d7a0f6db..b7c0633f75493 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js @@ -88,10 +88,14 @@ link_1.b; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/yX: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js index 8e16059bf38ad..a464c6f63090a 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js @@ -112,10 +112,16 @@ System.register("b", ["Xy/a", "link/a"], function (exports_3, context_3) { PolledWatches:: +/user/username/projects/myproject/XY/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js index acbae92d6101d..ec3dc0539e000 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js @@ -92,8 +92,12 @@ link_1.b; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js index 7807baa22a334..91ac78c80d8e9 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js @@ -112,10 +112,16 @@ System.register("b", ["Xy/a", "link/a"], function (exports_3, context_3) { PolledWatches:: +/user/username/projects/myproject/XY/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js index 25f173f6f2868..4956c5528dd6b 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js @@ -92,8 +92,12 @@ link_1.b; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js index 7d52a608fab86..07a0ceafdde45 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js @@ -98,8 +98,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js index 1f3f43bb46538..5fd364a5f3bc9 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js @@ -59,8 +59,12 @@ new logger_1.logger(); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js index ac04905a8afa6..ba0ff0037c005 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js @@ -107,10 +107,8 @@ File '/package.json' does not exist according to earlier cached lookups. node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'src/bin.ts' with packageId 'yargs/index.d.ts@17.0.12' Entry point for implicit type library 'yargs' with packageId 'yargs/index.d.ts@17.0.12' - File is CommonJS module because 'node_modules/@types/yargs/package.json' does not have field "type" src/bin.ts Matched by default include pattern '**/*' - File is CommonJS module because 'package.json' was not found [12:00:38 AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js index 6fcbccd2cebf6..ddba3c5632b7d 100644 --- a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js @@ -45,7 +45,7 @@ var classnames_1 = require("classnames"); //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1239706283-export interface Result {} export default function classNames(): Result;","-5756287633-import classNames from \"classnames\"; classNames().foo;","-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }"],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"1239706283-export interface Result {} export default function classNames(): Result;","impliedFormat":1},{"version":"-5756287633-import classNames from \"classnames\"; classNames().foo;","impliedFormat":1},{"version":"-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }","impliedFormat":1}],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -69,23 +69,40 @@ var classnames_1 = require("classnames"); "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/classnames/index.d.ts": { + "original": { + "version": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": 1 + }, "version": "1239706283-export interface Result {} export default function classNames(): Result;", - "signature": "1239706283-export interface Result {} export default function classNames(): Result;" + "signature": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": "commonjs" }, "./src/index.ts": { + "original": { + "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", + "impliedFormat": 1 + }, "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", - "signature": "-5756287633-import classNames from \"classnames\"; classNames().foo;" + "signature": "-5756287633-import classNames from \"classnames\"; classNames().foo;", + "impliedFormat": "commonjs" }, "./src/types/classnames.d.ts": { + "original": { + "version": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }", + "impliedFormat": 1 + }, "version": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }", - "signature": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }" + "signature": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }", + "impliedFormat": "commonjs" } }, "root": [ @@ -118,7 +135,7 @@ var classnames_1 = require("classnames"); ] }, "version": "FakeTSVersion", - "size": 1034 + "size": 1142 } @@ -172,7 +189,7 @@ Found 1 error in src/index.ts:1 //// [/users/username/projects/project/src/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1239706283-export interface Result {} export default function classNames(): Result;",{"version":"-5756287633-import classNames from \"classnames\"; classNames().foo;","signature":"-3531856636-export {};\n"},"-14890340642-export {}; declare module \"classnames\" { interface Result {} }"],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/index.ts","start":50,"length":3,"code":2339,"category":1,"messageText":"Property 'foo' does not exist on type 'Result'."}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"1239706283-export interface Result {} export default function classNames(): Result;","impliedFormat":1},{"version":"-5756287633-import classNames from \"classnames\"; classNames().foo;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-14890340642-export {}; declare module \"classnames\" { interface Result {} }","impliedFormat":1}],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/index.ts","start":50,"length":3,"code":2339,"category":1,"messageText":"Property 'foo' does not exist on type 'Result'."}]],4]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -196,27 +213,41 @@ Found 1 error in src/index.ts:1 "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/classnames/index.d.ts": { + "original": { + "version": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": 1 + }, "version": "1239706283-export interface Result {} export default function classNames(): Result;", - "signature": "1239706283-export interface Result {} export default function classNames(): Result;" + "signature": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/types/classnames.d.ts": { + "original": { + "version": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }", + "impliedFormat": 1 + }, "version": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }", - "signature": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }" + "signature": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }", + "impliedFormat": "commonjs" } }, "root": [ @@ -261,7 +292,7 @@ Found 1 error in src/index.ts:1 ] }, "version": "FakeTSVersion", - "size": 1221 + "size": 1317 } diff --git a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js index 110e73ca2aa88..831f2183ee7b7 100644 --- a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js @@ -50,7 +50,7 @@ var classnames_1 = require("classnames"); //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1239706283-export interface Result {} export default function classNames(): Result;","-5756287633-import classNames from \"classnames\"; classNames().foo;","-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }"],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"1239706283-export interface Result {} export default function classNames(): Result;","impliedFormat":1},{"version":"-5756287633-import classNames from \"classnames\"; classNames().foo;","impliedFormat":1},{"version":"-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }","impliedFormat":1}],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -74,23 +74,40 @@ var classnames_1 = require("classnames"); "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/classnames/index.d.ts": { + "original": { + "version": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": 1 + }, "version": "1239706283-export interface Result {} export default function classNames(): Result;", - "signature": "1239706283-export interface Result {} export default function classNames(): Result;" + "signature": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": "commonjs" }, "./src/index.ts": { + "original": { + "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", + "impliedFormat": 1 + }, "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", - "signature": "-5756287633-import classNames from \"classnames\"; classNames().foo;" + "signature": "-5756287633-import classNames from \"classnames\"; classNames().foo;", + "impliedFormat": "commonjs" }, "./src/types/classnames.d.ts": { + "original": { + "version": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }", + "impliedFormat": 1 + }, "version": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }", - "signature": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }" + "signature": "-16510108606-export {}; declare module \"classnames\" { interface Result { foo } }", + "impliedFormat": "commonjs" } }, "root": [ @@ -123,15 +140,27 @@ var classnames_1 = require("classnames"); ] }, "version": "FakeTSVersion", - "size": 1034 + "size": 1142 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/node_modules/classnames/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/src/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/src/types/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -194,8 +223,20 @@ export {}; declare module "classnames" { interface Result {} } PolledWatches *deleted*:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/node_modules/classnames/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} +/users/username/projects/project/src/package.json: + {"pollingInterval":2000} +/users/username/projects/project/src/types/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -232,7 +273,7 @@ Output:: //// [/users/username/projects/project/src/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1239706283-export interface Result {} export default function classNames(): Result;",{"version":"-5756287633-import classNames from \"classnames\"; classNames().foo;","signature":"-3531856636-export {};\n"},"-14890340642-export {}; declare module \"classnames\" { interface Result {} }"],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/index.ts","start":50,"length":3,"code":2339,"category":1,"messageText":"Property 'foo' does not exist on type 'Result'."}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/classnames/index.d.ts","./src/index.ts","./src/types/classnames.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"1239706283-export interface Result {} export default function classNames(): Result;","impliedFormat":1},{"version":"-5756287633-import classNames from \"classnames\"; classNames().foo;","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-14890340642-export {}; declare module \"classnames\" { interface Result {} }","impliedFormat":1}],"root":[3,4],"options":{"module":1},"fileIdsList":[[2,4],[2]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/index.ts","start":50,"length":3,"code":2339,"category":1,"messageText":"Property 'foo' does not exist on type 'Result'."}]],4]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -256,27 +297,41 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/classnames/index.d.ts": { + "original": { + "version": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": 1 + }, "version": "1239706283-export interface Result {} export default function classNames(): Result;", - "signature": "1239706283-export interface Result {} export default function classNames(): Result;" + "signature": "1239706283-export interface Result {} export default function classNames(): Result;", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-5756287633-import classNames from \"classnames\"; classNames().foo;", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "./src/types/classnames.d.ts": { + "original": { + "version": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }", + "impliedFormat": 1 + }, "version": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }", - "signature": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }" + "signature": "-14890340642-export {}; declare module \"classnames\" { interface Result {} }", + "impliedFormat": "commonjs" } }, "root": [ @@ -321,15 +376,27 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1221 + "size": 1317 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/node_modules/classnames/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/src/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/src/types/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js index 1eb71d8949fba..0a0ad27326380 100644 --- a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js @@ -48,7 +48,7 @@ exports.x = tslib_1.__assign({}); //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/tslib/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1620578607-export function __assign(...args: any[]): any;","-14168389096-export const x = {...{}};"],"root":[3],"options":{"importHelpers":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/tslib/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"1620578607-export function __assign(...args: any[]): any;","impliedFormat":1},{"version":"-14168389096-export const x = {...{}};","impliedFormat":1}],"root":[3],"options":{"importHelpers":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -67,19 +67,31 @@ exports.x = tslib_1.__assign({}); "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/tslib/index.d.ts": { + "original": { + "version": "1620578607-export function __assign(...args: any[]): any;", + "impliedFormat": 1 + }, "version": "1620578607-export function __assign(...args: any[]): any;", - "signature": "1620578607-export function __assign(...args: any[]): any;" + "signature": "1620578607-export function __assign(...args: any[]): any;", + "impliedFormat": "commonjs" }, "./index.tsx": { + "original": { + "version": "-14168389096-export const x = {...{}};", + "impliedFormat": 1 + }, "version": "-14168389096-export const x = {...{}};", - "signature": "-14168389096-export const x = {...{}};" + "signature": "-14168389096-export const x = {...{}};", + "impliedFormat": "commonjs" } }, "root": [ @@ -103,7 +115,7 @@ exports.x = tslib_1.__assign({}); ] }, "version": "FakeTSVersion", - "size": 849 + "size": 927 } @@ -152,7 +164,7 @@ Found 1 error in index.tsx:1 //// [/users/username/projects/project/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14168389096-export const x = {...{}};","signature":"-6508651827-export declare const x: {};\n"}],"root":[2],"options":{"importHelpers":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":18,"length":5,"messageText":"This syntax requires an imported helper but module 'tslib' cannot be found.","category":1,"code":2354}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-14168389096-export const x = {...{}};","signature":"-6508651827-export declare const x: {};\n","impliedFormat":1}],"root":[2],"options":{"importHelpers":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":18,"length":5,"messageText":"This syntax requires an imported helper but module 'tslib' cannot be found.","category":1,"code":2354}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -165,19 +177,23 @@ Found 1 error in index.tsx:1 "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "-14168389096-export const x = {...{}};", - "signature": "-6508651827-export declare const x: {};\n" + "signature": "-6508651827-export declare const x: {};\n", + "impliedFormat": 1 }, "version": "-14168389096-export const x = {...{}};", - "signature": "-6508651827-export declare const x: {};\n" + "signature": "-6508651827-export declare const x: {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -208,7 +224,7 @@ Found 1 error in index.tsx:1 ] }, "version": "FakeTSVersion", - "size": 962 + "size": 998 } diff --git a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js index 24b2670fbed8d..b67e2856242db 100644 --- a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js @@ -56,8 +56,12 @@ exports.x = tslib_1.__assign({}); PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -112,8 +116,12 @@ Input:: PolledWatches *deleted*:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -153,8 +161,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js index 5efd0f076c1fc..b9b6c2b4dad29 100644 --- a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js @@ -84,7 +84,7 @@ export { C } from "./c"; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -116,27 +116,49 @@ export { C } from "./c"; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 + }, "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 + }, "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": 1 + }, "version": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", - "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" + "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -184,7 +206,7 @@ export { C } from "./c"; ] }, "version": "FakeTSVersion", - "size": 1083 + "size": 1221 } @@ -253,7 +275,7 @@ export interface A { //// [/users/username/projects/project/index.d.ts] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -285,27 +307,49 @@ export interface A { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 + }, "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 + }, "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": 1 + }, "version": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", - "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -353,7 +397,7 @@ export interface A { ] }, "version": "FakeTSVersion", - "size": 1098 + "size": 1236 } diff --git a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js index e95fca3a2bdca..1da157113990f 100644 --- a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js @@ -89,7 +89,7 @@ export { C } from "./c"; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -121,27 +121,49 @@ export { C } from "./c"; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 + }, "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 + }, "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": 1 + }, "version": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", - "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" + "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -189,15 +211,19 @@ export { C } from "./c"; ] }, "version": "FakeTSVersion", - "size": 1083 + "size": 1221 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -271,8 +297,12 @@ export interface A { PolledWatches *deleted*:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -312,7 +342,7 @@ export interface A { //// [/users/username/projects/project/index.d.ts] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./c.ts","./b.ts","./a.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n","impliedFormat":1},{"version":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n","impliedFormat":1},{"version":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n","impliedFormat":1},{"version":"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n","impliedFormat":1}],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":1,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -344,27 +374,49 @@ export interface A { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./c.ts": { + "original": { + "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": 1 + }, "version": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", - "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" + "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": 1 + }, "version": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", - "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" + "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n", + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": 1 + }, "version": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", - "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" + "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { + "original": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": 1 + }, "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n" + "signature": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -412,15 +464,19 @@ export interface A { ] }, "version": "FakeTSVersion", - "size": 1098 + "size": 1236 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js index cc1534dd0901b..ee164a18a309a 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js @@ -51,7 +51,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14760199789-export const App = () =>
;"],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-14760199789-export const App = () =>
;","impliedFormat":1}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -64,15 +64,22 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" } }, "root": [ @@ -105,7 +112,7 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 947 + "size": 995 } @@ -163,7 +170,7 @@ Output:: //// [/users/username/projects/project/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n",{"version":"-14760199789-export const App = () =>
;","signature":"-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n"}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","signature":"-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +189,32 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/react/jsx-runtime/index.d.ts": { + "original": { + "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "-14760199789-export const App = () =>
;", - "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n" + "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n", + "impliedFormat": 1 }, "version": "-14760199789-export const App = () =>
;", - "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n" + "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +240,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1263 + "size": 1329 } diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js index 8bbb6fc0ca0a3..96e62647019d7 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js @@ -53,7 +53,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14760199789-export const App = () =>
;"],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-14760199789-export const App = () =>
;","impliedFormat":1}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -66,15 +66,22 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" } }, "root": [ @@ -107,7 +114,7 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 947 + "size": 995 } @@ -116,10 +123,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -188,10 +199,14 @@ PolledWatches *deleted*:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -215,7 +230,7 @@ Output:: //// [/users/username/projects/project/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n",{"version":"-14760199789-export const App = () =>
;","signature":"-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n"}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","signature":"-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -234,23 +249,32 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/react/jsx-runtime/index.d.ts": { + "original": { + "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "-14760199789-export const App = () =>
;", - "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n" + "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n", + "impliedFormat": 1 }, "version": "-14760199789-export const App = () =>
;", - "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n" + "signature": "-17269688391-export declare const App: () => import(\"react/jsx-runtime\").JSX.Element;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -276,15 +300,21 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1263 + "size": 1329 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/node_modules/react/jsx-runtime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js index d02a9252b3313..fed4cefc4de62 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js @@ -63,7 +63,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","-14760199789-export const App = () =>
;"],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -82,19 +82,31 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/react/jsx-runtime/index.d.ts": { + "original": { + "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" } }, "root": [ @@ -120,7 +132,7 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1147 + "size": 1225 } @@ -171,7 +183,7 @@ Found 1 error in index.tsx:1 //// [/users/username/projects/project/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14760199789-export const App = () =>
;","signature":"-11175433774-export declare const App: () => any;\n"}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-14760199789-export const App = () =>
;","signature":"-11175433774-export declare const App: () => any;\n","impliedFormat":1}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -184,19 +196,23 @@ Found 1 error in index.tsx:1 "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "-14760199789-export const App = () =>
;", - "signature": "-11175433774-export declare const App: () => any;\n" + "signature": "-11175433774-export declare const App: () => any;\n", + "impliedFormat": 1 }, "version": "-14760199789-export const App = () =>
;", - "signature": "-11175433774-export declare const App: () => any;\n" + "signature": "-11175433774-export declare const App: () => any;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -229,7 +245,7 @@ Found 1 error in index.tsx:1 ] }, "version": "FakeTSVersion", - "size": 1025 + "size": 1061 } diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js index 8b9a81ab85b48..5736190c731ec 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js @@ -68,7 +68,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","-14760199789-export const App = () =>
;"],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -87,19 +87,31 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/react/jsx-runtime/index.d.ts": { + "original": { + "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" } }, "root": [ @@ -125,15 +137,21 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1147 + "size": 1225 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/node_modules/react/jsx-runtime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -191,8 +209,14 @@ Input:: PolledWatches *deleted*:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/node_modules/react/jsx-runtime/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -227,7 +251,7 @@ Output:: //// [/users/username/projects/project/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14760199789-export const App = () =>
;","signature":"-11175433774-export declare const App: () => any;\n"}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-14760199789-export const App = () =>
;","signature":"-11175433774-export declare const App: () => any;\n","impliedFormat":1}],"root":[2],"options":{"jsx":4,"jsxImportSource":"react","module":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.tsx","start":25,"length":24,"messageText":"Cannot find module 'react/jsx-runtime' or its corresponding type declarations.","category":1,"code":2307}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -240,19 +264,23 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "-14760199789-export const App = () =>
;", - "signature": "-11175433774-export declare const App: () => any;\n" + "signature": "-11175433774-export declare const App: () => any;\n", + "impliedFormat": 1 }, "version": "-14760199789-export const App = () =>
;", - "signature": "-11175433774-export declare const App: () => any;\n" + "signature": "-11175433774-export declare const App: () => any;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -285,7 +313,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1025 + "size": 1061 } @@ -294,8 +322,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js index cdf61e20bc167..5252fec742e1f 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js @@ -89,7 +89,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","-14760199789-export const App = () =>
;"],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -108,19 +108,31 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/react/jsx-runtime/index.d.ts": { + "original": { + "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" } }, "root": [ @@ -146,7 +158,7 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1147 + "size": 1225 } @@ -221,7 +233,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/preact/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n",{"version":"-14760199789-export const App = () =>
;","signature":"-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n"}],"root":[3],"options":{"jsx":4,"jsxImportSource":"preact","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./index.tsx","start":30,"length":5,"code":2322,"category":1,"messageText":{"messageText":"Type '{ propA: boolean; }' is not assignable to type '{ propB?: boolean; }'.","category":1,"code":2322,"next":[{"messageText":"Property 'propA' does not exist on type '{ propB?: boolean; }'. Did you mean 'propB'?","category":1,"code":2551}]}}]],2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/preact/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","signature":"-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"preact","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./index.tsx","start":30,"length":5,"code":2322,"category":1,"messageText":{"messageText":"Type '{ propA: boolean; }' is not assignable to type '{ propB?: boolean; }'.","category":1,"code":2322,"next":[{"messageText":"Property 'propA' does not exist on type '{ propB?: boolean; }'. Did you mean 'propB'?","category":1,"code":2551}]}}]],2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -240,23 +252,32 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/preact/jsx-runtime/index.d.ts": { + "original": { + "version": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "-14760199789-export const App = () =>
;", - "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n" + "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n", + "impliedFormat": 1 }, "version": "-14760199789-export const App = () =>
;", - "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n" + "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -305,7 +326,7 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1611 + "size": 1677 } diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js index 3e1eb3813dd89..9ad3b9f0cd52a 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js @@ -94,7 +94,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","-14760199789-export const App = () =>
;"],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/react/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"react","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -113,19 +113,31 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/react/jsx-runtime/index.d.ts": { + "original": { + "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-35656056833-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propA?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { + "original": { + "version": "-14760199789-export const App = () =>
;", + "impliedFormat": 1 + }, "version": "-14760199789-export const App = () =>
;", - "signature": "-14760199789-export const App = () =>
;" + "signature": "-14760199789-export const App = () =>
;", + "impliedFormat": "commonjs" } }, "root": [ @@ -151,15 +163,21 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1147 + "size": 1225 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/node_modules/react/jsx-runtime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -226,8 +244,14 @@ Input:: PolledWatches *deleted*:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/node_modules/react/jsx-runtime/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -277,7 +301,7 @@ exports.App = App; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/preact/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n",{"version":"-14760199789-export const App = () =>
;","signature":"-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n"}],"root":[3],"options":{"jsx":4,"jsxImportSource":"preact","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./index.tsx","start":30,"length":5,"code":2322,"category":1,"messageText":{"messageText":"Type '{ propA: boolean; }' is not assignable to type '{ propB?: boolean; }'.","category":1,"code":2322,"next":[{"messageText":"Property 'propA' does not exist on type '{ propB?: boolean; }'. Did you mean 'propB'?","category":1,"code":2551}]}}]],2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./node_modules/preact/jsx-runtime/index.d.ts","./index.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\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":"-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n","impliedFormat":1},{"version":"-14760199789-export const App = () =>
;","signature":"-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n","impliedFormat":1}],"root":[3],"options":{"jsx":4,"jsxImportSource":"preact","module":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./index.tsx","start":30,"length":5,"code":2322,"category":1,"messageText":{"messageText":"Type '{ propA: boolean; }' is not assignable to type '{ propB?: boolean; }'.","category":1,"code":2322,"next":[{"messageText":"Property 'propA' does not exist on type '{ propB?: boolean; }'. Did you mean 'propB'?","category":1,"code":2551}]}}]],2]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -296,23 +320,32 @@ exports.App = App; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./node_modules/preact/jsx-runtime/index.d.ts": { + "original": { + "version": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": 1 + }, "version": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", - "signature": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n" + "signature": "-17896129664-export namespace JSX {\n interface Element {}\n interface IntrinsicElements {\n div: {\n propB?: boolean;\n };\n }\n}\nexport function jsx(...args: any[]): void;\nexport function jsxs(...args: any[]): void;\nexport const Fragment: unique symbol;\n", + "impliedFormat": "commonjs" }, "./index.tsx": { "original": { "version": "-14760199789-export const App = () =>
;", - "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n" + "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n", + "impliedFormat": 1 }, "version": "-14760199789-export const App = () =>
;", - "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n" + "signature": "-8162467991-export declare const App: () => import(\"preact/jsx-runtime\").JSX.Element;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -361,15 +394,21 @@ exports.App = App; ] }, "version": "FakeTSVersion", - "size": 1611 + "size": 1677 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/node_modules/preact/jsx-runtime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js index 9644798e56d30..fd633be453839 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js @@ -59,7 +59,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13939690350-export const y: string = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -73,19 +73,31 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./file2.ts": { + "original": { + "version": "-13939690350-export const y: string = 20;", + "impliedFormat": 1 + }, "version": "-13939690350-export const y: string = 20;", - "signature": "-13939690350-export const y: string = 20;" + "signature": "-13939690350-export const y: string = 20;", + "impliedFormat": "commonjs" } }, "root": [ @@ -121,7 +133,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 832 + "size": 910 } @@ -180,7 +192,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13939690350-export const y: string = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -194,23 +206,32 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { + "original": { + "version": "-13939690350-export const y: string = 20;", + "impliedFormat": 1 + }, "version": "-13939690350-export const y: string = 20;", - "signature": "-13939690350-export const y: string = 20;" + "signature": "-13939690350-export const y: string = 20;", + "impliedFormat": "commonjs" } }, "root": [ @@ -246,7 +267,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 901 + "size": 967 } diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js index e5d4f5991e1bc..898f12f987018 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js @@ -61,7 +61,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13939690350-export const y: string = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -75,19 +75,31 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./file2.ts": { + "original": { + "version": "-13939690350-export const y: string = 20;", + "impliedFormat": 1 + }, "version": "-13939690350-export const y: string = 20;", - "signature": "-13939690350-export const y: string = 20;" + "signature": "-13939690350-export const y: string = 20;", + "impliedFormat": "commonjs" } }, "root": [ @@ -123,15 +135,19 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 832 + "size": 910 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -185,8 +201,12 @@ export const z = 10; PolledWatches *deleted*:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -225,7 +245,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"},"-13939690350-export const y: string = 20;"],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1},{"version":"-13939690350-export const y: string = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -239,23 +259,32 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { + "original": { + "version": "-13939690350-export const y: string = 20;", + "impliedFormat": 1 + }, "version": "-13939690350-export const y: string = 20;", - "signature": "-13939690350-export const y: string = 20;" + "signature": "-13939690350-export const y: string = 20;", + "impliedFormat": "commonjs" } }, "root": [ @@ -291,15 +320,19 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 901 + "size": 967 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js index 43b472720d1b0..9c1dfba9b87ef 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js @@ -51,7 +51,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -65,19 +65,31 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, "version": "-13729954175-export const y = 20;", - "signature": "-13729954175-export const y = 20;" + "signature": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" } }, "root": [ @@ -101,7 +113,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 685 + "size": 763 } @@ -152,7 +164,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -166,23 +178,32 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -206,7 +227,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 754 + "size": 820 } diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js index 22e6c91b41f5d..8c8220ece3f52 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js @@ -56,7 +56,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -70,19 +70,31 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, "version": "-13729954175-export const y = 20;", - "signature": "-13729954175-export const y = 20;" + "signature": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" } }, "root": [ @@ -106,15 +118,19 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 685 + "size": 763 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -168,8 +184,12 @@ export const z = 10; PolledWatches *deleted*:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -203,7 +223,7 @@ define(["require", "exports"], function (require, exports) { //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;",{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n"}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-12438487295-export const z = 10;","signature":"-7483702853-export declare const z = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"module":2},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -217,23 +237,32 @@ define(["require", "exports"], function (require, exports) { "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": 1 }, "version": "-12438487295-export const z = 10;", - "signature": "-7483702853-export declare const z = 10;\n" + "signature": "-7483702853-export declare const z = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -257,15 +286,19 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 754 + "size": 820 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* 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 51516f1dd7747..7e5b1f8349dac 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,7 +49,7 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2,"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -60,9 +60,30 @@ define("file2", ["require", "exports"], function (require, exports) { "./file2.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; }", - "./file1.ts": "-10726455937-export const x = 10;", - "./file2.ts": "-13729954175-export const y = 20;" + "../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -80,7 +101,7 @@ define("file2", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 612 + "size": 702 } 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 60f79e824ee1c..f9035f9b22a48 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,7 +54,7 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1}],"root":[2,3],"options":{"module":2,"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -65,9 +65,30 @@ define("file2", ["require", "exports"], function (require, exports) { "./file2.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; }", - "./file1.ts": "-10726455937-export const x = 10;", - "./file2.ts": "-13729954175-export const y = 20;" + "../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "-13729954175-export const y = 20;", + "impliedFormat": 1 + }, + "version": "-13729954175-export const y = 20;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -85,15 +106,19 @@ define("file2", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 612 + "size": 702 } PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js index 5ee79db7a577d..110577aede7b2 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js @@ -48,7 +48,7 @@ var y = 20; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2414573776-const y: string = 20;","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","affectsGlobalScope":true,"impliedFormat":1},{"version":"2414573776-const y: string = 20;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -62,29 +62,35 @@ var y = 20; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2414573776-const y: string = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2414573776-const y: string = 20;", "signature": "2414573776-const y: string = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -117,7 +123,7 @@ var y = 20; ] }, "version": "FakeTSVersion", - "size": 866 + "size": 920 } @@ -171,7 +177,7 @@ var z = 10; //// [/users/username/projects/project/file2.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true},{"version":"2414573776-const y: string = 20;","signature":"509180395-declare const y: string;\n","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2414573776-const y: string = 20;","signature":"509180395-declare const y: string;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -185,31 +191,37 @@ var z = 10; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2414573776-const y: string = 20;", "signature": "509180395-declare const y: string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2414573776-const y: string = 20;", "signature": "509180395-declare const y: string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -242,7 +254,7 @@ var z = 10; ] }, "version": "FakeTSVersion", - "size": 966 + "size": 1020 } diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js index 1c19207cab6da..dd213821622cb 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js @@ -50,7 +50,7 @@ var y = 20; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2414573776-const y: string = 20;","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","affectsGlobalScope":true,"impliedFormat":1},{"version":"2414573776-const y: string = 20;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -64,29 +64,35 @@ var y = 20; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2414573776-const y: string = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2414573776-const y: string = 20;", "signature": "2414573776-const y: string = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -119,7 +125,7 @@ var y = 20; ] }, "version": "FakeTSVersion", - "size": 866 + "size": 920 } @@ -216,7 +222,7 @@ var z = 10; //// [/users/username/projects/project/file2.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true},{"version":"2414573776-const y: string = 20;","signature":"509180395-declare const y: string;\n","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"2414573776-const y: string = 20;","signature":"509180395-declare const y: string;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./file2.ts","start":6,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -230,31 +236,37 @@ var z = 10; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2414573776-const y: string = 20;", "signature": "509180395-declare const y: string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2414573776-const y: string = 20;", "signature": "509180395-declare const y: string;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -287,7 +299,7 @@ var z = 10; ] }, "version": "FakeTSVersion", - "size": 966 + "size": 1020 } diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js index b4f5a013fe8a1..ca79957a2629b 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js @@ -40,7 +40,7 @@ var y = 20; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2026007743-const y = 20;","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","affectsGlobalScope":true,"impliedFormat":1},{"version":"2026007743-const y = 20;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -54,29 +54,35 @@ var y = 20; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2026007743-const y = 20;", "signature": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -97,7 +103,7 @@ var y = 20; ] }, "version": "FakeTSVersion", - "size": 720 + "size": 774 } @@ -144,7 +150,7 @@ var z = 10; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -158,31 +164,37 @@ var z = 10; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -203,7 +215,7 @@ var z = 10; ] }, "version": "FakeTSVersion", - "size": 819 + "size": 873 } diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js index 0dd2db82fbea8..059af0a7916c5 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js @@ -45,7 +45,7 @@ var y = 20; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2026007743-const y = 20;","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","affectsGlobalScope":true,"impliedFormat":1},{"version":"2026007743-const y = 20;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -59,29 +59,35 @@ var y = 20; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2026007743-const y = 20;", "signature": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -102,7 +108,7 @@ var y = 20; ] }, "version": "FakeTSVersion", - "size": 720 + "size": 774 } @@ -195,7 +201,7 @@ var z = 10; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -209,31 +215,37 @@ var z = 10; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -254,7 +266,7 @@ var z = 10; ] }, "version": "FakeTSVersion", - "size": 819 + "size": 873 } diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js index 7b4979b91e09b..58e79b0faefe0 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js @@ -40,7 +40,7 @@ var y = 20; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2026007743-const y = 20;","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","affectsGlobalScope":true,"impliedFormat":1},{"version":"2026007743-const y = 20;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -54,29 +54,35 @@ var y = 20; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2026007743-const y = 20;", "signature": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -97,7 +103,7 @@ var y = 20; ] }, "version": "FakeTSVersion", - "size": 720 + "size": 774 } @@ -143,7 +149,7 @@ var z = 10; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -157,31 +163,37 @@ var z = 10; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -202,7 +214,7 @@ var z = 10; ] }, "version": "FakeTSVersion", - "size": 819 + "size": 873 } diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js index 6e70a38711f9c..916d1339e4fb2 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js @@ -45,7 +45,7 @@ var y = 20; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2026007743-const y = 20;","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","affectsGlobalScope":true,"impliedFormat":1},{"version":"2026007743-const y = 20;","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -59,29 +59,35 @@ var y = 20; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "5029505981-const x = 10;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "2026007743-const y = 20;", "signature": "2026007743-const y = 20;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -102,7 +108,7 @@ var y = 20; ] }, "version": "FakeTSVersion", - "size": 720 + "size": 774 } @@ -194,7 +200,7 @@ var z = 10; //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"5029505981-const x = 10;","signature":"-4001438729-declare const x = 10;\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"3317474623-const z = 10;","signature":"-368931399-declare const z = 10;\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -208,31 +214,37 @@ var z = 10; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file1.ts": { "original": { "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5029505981-const x = 10;", "signature": "-4001438729-declare const x = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "3317474623-const z = 10;", "signature": "-368931399-declare const z = 10;\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -253,7 +265,7 @@ var z = 10; ] }, "version": "FakeTSVersion", - "size": 819 + "size": 873 } diff --git a/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js index 8b077ef667ade..71d3aedfdb638 100644 --- a/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js @@ -33,7 +33,7 @@ Output:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;"],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/project/main.js] "use strict"; @@ -53,15 +53,22 @@ exports.x = 10; "../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -77,7 +84,7 @@ exports.x = 10; ] }, "version": "FakeTSVersion", - "size": 602 + "size": 650 } diff --git a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js index 807a46d053fd5..d8595701f1c19 100644 --- a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js @@ -38,7 +38,7 @@ console.log(Config.value); //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./globals.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6314871648-declare namespace Config { const value: string;} ","affectsGlobalScope":true},{"version":"5371023861-console.log(Config.value);","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./globals.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":"-6314871648-declare namespace Config { const value: string;} ","affectsGlobalScope":true,"impliedFormat":1},{"version":"5371023861-console.log(Config.value);","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -52,29 +52,35 @@ console.log(Config.value); "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./globals.d.ts": { "original": { "version": "-6314871648-declare namespace Config { const value: string;} ", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-6314871648-declare namespace Config { const value: string;} ", "signature": "-6314871648-declare namespace Config { const value: string;} ", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "5371023861-console.log(Config.value);", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5371023861-console.log(Config.value);", "signature": "5371023861-console.log(Config.value);", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -95,7 +101,7 @@ console.log(Config.value); ] }, "version": "FakeTSVersion", - "size": 854 + "size": 908 } @@ -143,7 +149,7 @@ Found 1 error in index.ts:1 //// [/users/username/projects/project/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5371023861-console.log(Config.value);","signature":"5381-","affectsGlobalScope":true}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.ts","start":12,"length":6,"messageText":"Cannot find name 'Config'.","category":1,"code":2304}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5371023861-console.log(Config.value);","signature":"5381-","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.ts","start":12,"length":6,"messageText":"Cannot find name 'Config'.","category":1,"code":2304}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -156,21 +162,25 @@ Found 1 error in index.ts:1 "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "5371023861-console.log(Config.value);", "signature": "5381-", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5371023861-console.log(Config.value);", "signature": "5381-", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -198,7 +208,7 @@ Found 1 error in index.ts:1 ] }, "version": "FakeTSVersion", - "size": 867 + "size": 903 } diff --git a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js index 35cf1fb9c6d63..2f6252cf57945 100644 --- a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js @@ -43,7 +43,7 @@ console.log(Config.value); //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./globals.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6314871648-declare namespace Config { const value: string;} ","affectsGlobalScope":true},{"version":"5371023861-console.log(Config.value);","affectsGlobalScope":true}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./globals.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":"-6314871648-declare namespace Config { const value: string;} ","affectsGlobalScope":true,"impliedFormat":1},{"version":"5371023861-console.log(Config.value);","affectsGlobalScope":true,"impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -57,29 +57,35 @@ console.log(Config.value); "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./globals.d.ts": { "original": { "version": "-6314871648-declare namespace Config { const value: string;} ", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-6314871648-declare namespace Config { const value: string;} ", "signature": "-6314871648-declare namespace Config { const value: string;} ", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "5371023861-console.log(Config.value);", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5371023861-console.log(Config.value);", "signature": "5371023861-console.log(Config.value);", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -100,7 +106,7 @@ console.log(Config.value); ] }, "version": "FakeTSVersion", - "size": 854 + "size": 908 } @@ -191,7 +197,7 @@ Output:: //// [/users/username/projects/project/index.js] file written with same contents //// [/users/username/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5371023861-console.log(Config.value);","signature":"5381-","affectsGlobalScope":true}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.ts","start":12,"length":6,"messageText":"Cannot find name 'Config'.","category":1,"code":2304}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"5371023861-console.log(Config.value);","signature":"5381-","affectsGlobalScope":true,"impliedFormat":1}],"root":[2],"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./index.ts","start":12,"length":6,"messageText":"Cannot find name 'Config'.","category":1,"code":2304}]]]},"version":"FakeTSVersion"} //// [/users/username/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -204,21 +210,25 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "5371023861-console.log(Config.value);", "signature": "5381-", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "5371023861-console.log(Config.value);", "signature": "5381-", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -246,7 +256,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 867 + "size": 903 } diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js index 12c8db74047ca..d0c2f01b2c8be 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js @@ -38,7 +38,7 @@ var y = 20; //// [/users/username/projects/project/out.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"5029505981-const x = 10;","impliedFormat":1},{"version":"2026007743-const y = 20;","impliedFormat":1}],"root":[2,3],"options":{"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -49,9 +49,30 @@ var y = 20; "./file2.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; }", - "./file1.ts": "5029505981-const x = 10;", - "./file2.ts": "2026007743-const y = 20;" + "../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "5029505981-const x = 10;", + "impliedFormat": 1 + }, + "version": "5029505981-const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "2026007743-const y = 20;", + "impliedFormat": 1 + }, + "version": "2026007743-const y = 20;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -68,7 +89,7 @@ var y = 20; } }, "version": "FakeTSVersion", - "size": 583 + "size": 673 } diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js index b427cfc32913e..44d6b19c3a29a 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js @@ -43,7 +43,7 @@ var y = 20; //// [/users/username/projects/project/out.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"5029505981-const x = 10;","impliedFormat":1},{"version":"2026007743-const y = 20;","impliedFormat":1}],"root":[2,3],"options":{"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { @@ -54,9 +54,30 @@ var y = 20; "./file2.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; }", - "./file1.ts": "5029505981-const x = 10;", - "./file2.ts": "2026007743-const y = 20;" + "../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./file1.ts": { + "original": { + "version": "5029505981-const x = 10;", + "impliedFormat": 1 + }, + "version": "5029505981-const x = 10;", + "impliedFormat": "commonjs" + }, + "./file2.ts": { + "original": { + "version": "2026007743-const y = 20;", + "impliedFormat": 1 + }, + "version": "2026007743-const y = 20;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -73,7 +94,7 @@ var y = 20; } }, "version": "FakeTSVersion", - "size": 583 + "size": 673 } diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js index 11cb2f7ad983a..e0711c1d3a884 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -183,8 +183,23 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefined Source file ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -205,6 +220,13 @@ DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -221,6 +243,13 @@ File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -237,14 +266,38 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -265,7 +318,18 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots node_modules/@typescript/lib-webworker/index.d.ts @@ -328,7 +392,7 @@ export declare const x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,74 +413,103 @@ export declare const x = "type1"; "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -454,13 +547,21 @@ export declare const x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1763 + "size": 1979 } PolledWatches:: +/home/src/projects/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project1/node_modules: *new* {"pollingInterval":500} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* @@ -587,10 +688,91 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -598,7 +780,7 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Scoped package detected, looking in 'typescript__lib-dom' -File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist. @@ -625,6 +807,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions @@ -656,7 +842,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -677,74 +863,103 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -782,13 +997,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1739 + "size": 1955 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -919,6 +1142,63 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. @@ -963,7 +1243,7 @@ export declare const xyz = 10; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -984,74 +1264,103 @@ export declare const xyz = 10; "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -1089,7 +1398,7 @@ export declare const xyz = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1792 + "size": 2008 } @@ -1168,11 +1477,63 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions @@ -1199,7 +1560,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1219,70 +1580,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -1318,13 +1703,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1735 + "size": 1921 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: @@ -1441,6 +1834,58 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. @@ -1459,7 +1904,62 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file node_modules/@typescript/lib-webworker/index.d.ts @@ -1490,7 +1990,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1510,70 +2010,94 @@ project1/typeroot1/sometype/index.d.ts "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -1609,13 +2133,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1759 + "size": 1945 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* @@ -1751,9 +2283,57 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1762,6 +2342,13 @@ File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots node_modules/@typescript/lib-webworker/index.d.ts @@ -1790,8 +2377,16 @@ project1/typeroot1/sometype/index.d.ts PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} /home/src/projects/project1/typeroot2: *new* {"pollingInterval":500} @@ -1917,9 +2512,57 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1960,6 +2603,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots @@ -1992,7 +2639,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2012,70 +2659,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -2111,13 +2782,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1735 + "size": 1921 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /home/src/projects/project1/typeroot2: @@ -2249,14 +2928,35 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Scoped package detected, looking in 'typescript__lib-webworker' -File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist. @@ -2283,11 +2983,50 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions ../lib/lib.webworker.d.ts @@ -2316,7 +3055,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2336,70 +3075,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -2435,13 +3198,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1711 + "size": 1897 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: @@ -2578,6 +3349,55 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -2593,11 +3413,63 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions @@ -2627,7 +3499,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2647,70 +3519,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-scripthost/index.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-es5/index.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -2746,13 +3642,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1735 + "size": 1921 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js index fc11a799b5c43..4a01eaa1473a6 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -144,8 +144,23 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefined Source file ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -177,6 +192,10 @@ DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -204,6 +223,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.scripthost.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -231,14 +254,35 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/package.json' does not exist. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -270,7 +314,15 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots ../lib/lib.es5.d.ts @@ -333,7 +385,7 @@ export declare const x = "type1"; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -354,74 +406,103 @@ export declare const x = "type1"; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -459,13 +540,21 @@ export declare const x = "type1"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1667 + "size": 1883 } PolledWatches:: +/home/src/projects/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project1/node_modules: *new* {"pollingInterval":500} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -604,6 +693,54 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. @@ -622,7 +759,58 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file ../lib/lib.es5.d.ts @@ -655,7 +843,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -676,74 +864,103 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": 1 }, "version": "-11532698187-export const x = \"type1\";", - "signature": "-5899226897-export declare const x = \"type1\";\n" + "signature": "-5899226897-export declare const x = \"type1\";\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -781,13 +998,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1691 + "size": 1907 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.es5.d.ts: @@ -915,6 +1140,57 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. @@ -959,7 +1235,7 @@ export declare const xyz = 10; //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15683237936-export const core = 10;","impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -980,74 +1256,103 @@ export declare const xyz = 10; "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./core.d.ts": { + "original": { + "version": "-15683237936-export const core = 10;", + "impliedFormat": 1 + }, "version": "-15683237936-export const core = 10;", - "signature": "-15683237936-export const core = 10;" + "signature": "-15683237936-export const core = 10;", + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -1085,7 +1390,7 @@ export declare const xyz = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1744 + "size": 1960 } @@ -1164,11 +1469,57 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' @@ -1195,7 +1546,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1215,70 +1566,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -1314,13 +1689,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1687 + "size": 1873 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.es5.d.ts: @@ -1428,10 +1811,68 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -1439,7 +1880,7 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Scoped package detected, looking in 'typescript__lib-dom' -File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist. @@ -1466,6 +1907,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' @@ -1495,7 +1940,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1515,70 +1960,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.dom.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -1614,13 +2083,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1663 + "size": 1849 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -1759,9 +2236,48 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1770,6 +2286,10 @@ File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots ../lib/lib.es5.d.ts @@ -1798,8 +2318,16 @@ project1/typeroot1/sometype/index.d.ts PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} /home/src/projects/project1/typeroot2: *new* {"pollingInterval":500} @@ -1924,9 +2452,48 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1949,6 +2516,13 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots @@ -1981,7 +2555,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2001,70 +2575,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -2100,13 +2698,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1687 + "size": 1873 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /home/src/projects/project1/typeroot2: @@ -2250,6 +2856,52 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -2265,11 +2917,60 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' @@ -2299,7 +3000,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2319,70 +3020,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-webworker/index.d.ts": { "original": { "version": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7827135529-interface WebworkerInterface { }", "signature": "-7827135529-interface WebworkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -2418,13 +3143,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1711 + "size": 1897 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.es5.d.ts: @@ -2549,14 +3282,39 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Scoped package detected, looking in 'typescript__lib-webworker' -File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist. @@ -2583,11 +3341,47 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -2616,7 +3410,7 @@ project1/typeroot1/sometype/index.d.ts //// [/home/src/projects/project1/file2.js] file written with same contents //// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n","impliedFormat":1},{"version":"-11916614574-/// \n/// \n/// \n","signature":"5381-","impliedFormat":1},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1},{"version":"-12476477079-export type TheNum = \"type1\";","impliedFormat":1}],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2636,70 +3430,94 @@ project1/typeroot1/sometype/index.d.ts "../../lib/lib.es5.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3990185033-interface WebWorkerInterface { }", "signature": "-3990185033-interface WebWorkerInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../lib/lib.scripthost.d.ts": { "original": { "version": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-5403980302-interface ScriptHostInterface { }", "signature": "-5403980302-interface ScriptHostInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/@typescript/lib-dom/index.d.ts": { "original": { "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-8673759361-interface DOMInterface { }", "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": 1 }, "version": "-16628394009-export const file = 10;", - "signature": "-9025507999-export declare const file = 10;\n" + "signature": "-9025507999-export declare const file = 10;\n", + "impliedFormat": "commonjs" }, "./file2.ts": { "original": { "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": 1 }, "version": "-11916614574-/// \n/// \n/// \n", - "signature": "5381-" + "signature": "5381-", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": 1 }, "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n", + "impliedFormat": "commonjs" }, "./utils.d.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" }, "./typeroot1/sometype/index.d.ts": { + "original": { + "version": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": 1 + }, "version": "-12476477079-export type TheNum = \"type1\";", - "signature": "-12476477079-export type TheNum = \"type1\";" + "signature": "-12476477079-export type TheNum = \"type1\";", + "impliedFormat": "commonjs" } }, "root": [ @@ -2735,13 +3553,21 @@ project1/typeroot1/sometype/index.d.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1687 + "size": 1873 } PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.es5.d.ts: diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js index d32801e28bc3f..7be2b6e62e808 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js @@ -182,10 +182,35 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: project1/core.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/utils.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/file.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/index.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/file2.ts 250 undefined Source file ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -202,6 +227,13 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webwork ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -216,6 +248,13 @@ File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -230,6 +269,13 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -244,7 +290,16 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots node_modules/@typescript/lib-webworker/index.d.ts @@ -294,6 +349,10 @@ exports.x = "type1"; PolledWatches:: /home/src/projects/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* @@ -402,15 +461,89 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist. @@ -436,6 +569,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions @@ -467,6 +604,10 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -579,6 +720,56 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. @@ -678,11 +869,91 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: project1/core.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/core.d.ts 500 undefined Missing file error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: @@ -713,8 +984,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: *new* {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: @@ -816,6 +1091,51 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. @@ -832,6 +1152,59 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file error TS6053: File 'project1/core.d.ts' not found. @@ -866,8 +1239,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* @@ -967,12 +1344,44 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist. @@ -998,10 +1407,35 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: Root file specified for compilation @@ -1034,8 +1468,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.webworker.d.ts: *new* @@ -1147,6 +1585,51 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -1160,10 +1643,63 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: @@ -1197,8 +1733,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js index dfd9070afc35d..0921a2a6b5fde 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js @@ -143,10 +143,35 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/projects/project1/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: project1/core.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/utils.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/file.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/index.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/file2.ts 250 undefined Source file ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -173,6 +198,10 @@ Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +File '/home/src/lib/package.json' does not exist. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -197,6 +226,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.scripthost.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -221,6 +254,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -245,7 +282,13 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots ../lib/lib.es5.d.ts @@ -295,6 +338,10 @@ exports.x = "type1"; PolledWatches:: /home/src/projects/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -415,6 +462,47 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. @@ -431,6 +519,50 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +File '/home/src/projects/node_modules/package.json' does not exist. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file ../lib/lib.es5.d.ts @@ -463,6 +595,10 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.es5.d.ts: @@ -572,6 +708,50 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. @@ -671,11 +851,79 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: project1/core.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: project1/core.d.ts 500 undefined Missing file error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: @@ -706,8 +954,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: *new* {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.es5.d.ts: @@ -800,15 +1052,71 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist. @@ -834,6 +1142,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: @@ -867,8 +1179,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -983,6 +1299,42 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -996,10 +1348,54 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: @@ -1033,8 +1429,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: @@ -1134,12 +1534,56 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist. File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist. @@ -1165,10 +1609,26 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +File '/home/src/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: Root file specified for compilation @@ -1201,8 +1661,12 @@ project1/file2.ts PolledWatches:: /home/src/projects/node_modules/@types: {"pollingInterval":500} +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/core.d.ts: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: diff --git a/tests/baselines/reference/tscWatch/moduleResolution/alternateResult.js b/tests/baselines/reference/tscWatch/moduleResolution/alternateResult.js index 676ccf570acfc..6ee5342079db2 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/alternateResult.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/alternateResult.js @@ -367,7 +367,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/tscon //// [/home/src/projects/project/index.mjs] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; //// [/home/src/projects/project/tsconfig.tsbuildinfo] diff --git a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js index 6e1f0313da721..5f3b0ccda428c 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js @@ -77,12 +77,9 @@ File '/package.json' does not exist. //// [/user/username/projects/myproject/dist/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.thing = thing; -var me = require("@this/package"); +import * as me from "@this/package"; me.thing(); -function thing() { } +export function thing() { } //// [/user/username/projects/myproject/types/index.d.ts] @@ -90,10 +87,7 @@ export declare function thing(): void; //// [/user/username/projects/myproject/dist/index2.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.thing = thing; -function thing() { } +export function thing() { } //// [/user/username/projects/myproject/types/index2.d.ts] diff --git a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js index 055a34b24ed61..3a57e67b09654 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js @@ -54,6 +54,7 @@ Output:: >> Screen clear [12:00:43 AM] Starting compilation in watch mode... +Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -74,6 +75,8 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist. +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.js', target file types: TypeScript, Declaration. @@ -82,6 +85,11 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not e File '/user/username/projects/myproject/packages/pkg2/build/const.tsx' does not exist. File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:00:49 AM] Found 0 errors. Watching for file changes. @@ -105,6 +113,8 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/packages/pkg1/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/pkg2/build/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} @@ -113,6 +123,8 @@ FsWatches:: {} /user/username/projects/myproject/packages/pkg1/index.ts: *new* {} +/user/username/projects/myproject/packages/pkg1/package.json: *new* + {} /user/username/projects/myproject/packages/pkg1/tsconfig.json: *new* {} /user/username/projects/myproject/packages/pkg2/build/const.d.ts: *new* @@ -191,6 +203,15 @@ Output:: >> Screen clear [12:00:53 AM] File change detected. Starting incremental compilation... +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -211,6 +232,11 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/other.tsx' does File '/user/username/projects/myproject/node_modules/pkg2/build/other.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/other.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/other.d.ts'. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/other.d.ts' with Package ID 'pkg2/build/other.d.ts@1.0.0'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. packages/pkg1/index.ts:1:15 - error TS2305: Module '"pkg2"' has no exported member 'TheNum'. 1 import type { TheNum } from 'pkg2' @@ -233,6 +259,8 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/packages/pkg1/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/packages/pkg2/build/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} @@ -241,6 +269,8 @@ FsWatches:: {} /user/username/projects/myproject/packages/pkg1/index.ts: {} +/user/username/projects/myproject/packages/pkg1/package.json: + {} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {} /user/username/projects/myproject/packages/pkg2/build/other.d.ts: *new* @@ -321,6 +351,13 @@ Output:: >> Screen clear [12:01:02 AM] File change detected. Starting incremental compilation... +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'. +File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -341,6 +378,8 @@ File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. ======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.js', target file types: TypeScript, Declaration. @@ -349,6 +388,11 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not e File '/user/username/projects/myproject/packages/pkg2/build/const.tsx' does not exist. File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.ts'. ======== +File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. [12:01:06 AM] Found 0 errors. Watching for file changes. @@ -366,6 +410,8 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/packages/pkg1/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/packages/pkg2/build/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} @@ -374,6 +420,8 @@ FsWatches:: {} /user/username/projects/myproject/packages/pkg1/index.ts: {} +/user/username/projects/myproject/packages/pkg1/package.json: + {} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {} /user/username/projects/myproject/packages/pkg2/build/const.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js b/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js index 76baa5bdb45a5..94872c9868b8b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js +++ b/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js @@ -39,6 +39,12 @@ T.bar(); +PolledWatches:: +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} @@ -109,6 +115,12 @@ function bar() { } +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js index cf1ee130389ee..2415e895f9d79 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js @@ -45,10 +45,16 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/Project/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/Project/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -118,10 +124,16 @@ exports.y = 10; PolledWatches:: /user/username/projects/myproject/Project/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/Project/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js index 5b817363589ce..ff68e6ab2645d 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js +++ b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js @@ -44,6 +44,8 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/f1.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/f2.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -77,7 +79,7 @@ export declare const y = 1; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./f2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n","impliedFormat":1},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./f2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,27 +93,33 @@ export declare const y = 1; "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./f1.ts": { "original": { "version": "-10906998252-export const x = 1", - "signature": "-7495133367-export declare const x = 1;\n" + "signature": "-7495133367-export declare const x = 1;\n", + "impliedFormat": 1 }, "version": "-10906998252-export const x = 1", - "signature": "-7495133367-export declare const x = 1;\n" + "signature": "-7495133367-export declare const x = 1;\n", + "impliedFormat": "commonjs" }, "./f2.ts": { "original": { "version": "-10905812331-export const y = 1", - "signature": "-6203665398-export declare const y = 1;\n" + "signature": "-6203665398-export declare const y = 1;\n", + "impliedFormat": 1 }, "version": "-10905812331-export const y = 1", - "signature": "-6203665398-export declare const y = 1;\n" + "signature": "-6203665398-export declare const y = 1;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -136,15 +144,19 @@ export declare const y = 1; "latestChangedDtsFile": "./f2.d.ts" }, "version": "FakeTSVersion", - "size": 852 + "size": 906 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -228,7 +240,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts","./new-file.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"}],"root":[[2,4]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./new-file.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts","./new-file.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n","impliedFormat":1},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n","impliedFormat":1},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n","impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./new-file.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -243,35 +255,43 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./f1.ts": { "original": { "version": "-10906998252-export const x = 1", - "signature": "-7495133367-export declare const x = 1;\n" + "signature": "-7495133367-export declare const x = 1;\n", + "impliedFormat": 1 }, "version": "-10906998252-export const x = 1", - "signature": "-7495133367-export declare const x = 1;\n" + "signature": "-7495133367-export declare const x = 1;\n", + "impliedFormat": "commonjs" }, "./f2.ts": { "original": { "version": "-10905812331-export const y = 1", - "signature": "-6203665398-export declare const y = 1;\n" + "signature": "-6203665398-export declare const y = 1;\n", + "impliedFormat": 1 }, "version": "-10905812331-export const y = 1", - "signature": "-6203665398-export declare const y = 1;\n" + "signature": "-6203665398-export declare const y = 1;\n", + "impliedFormat": "commonjs" }, "./new-file.ts": { "original": { "version": "-11960320495-export const z = 1;", - "signature": "-9207164725-export declare const z = 1;\n" + "signature": "-9207164725-export declare const z = 1;\n", + "impliedFormat": 1 }, "version": "-11960320495-export const z = 1;", - "signature": "-9207164725-export declare const z = 1;\n" + "signature": "-9207164725-export declare const z = 1;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -300,7 +320,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec "latestChangedDtsFile": "./new-file.d.ts" }, "version": "FakeTSVersion", - "size": 981 + "size": 1053 } //// [/user/username/projects/myproject/new-file.js] @@ -318,8 +338,12 @@ export declare const z = 1; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -397,7 +421,7 @@ CreatingProgramWith:: //// [/user/username/projects/myproject/f1.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./new-file.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"},{"version":"1363236232-import { z } from \"./new-file\";export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,4,2],"latestChangedDtsFile":"./new-file.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./new-file.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n","impliedFormat":1},{"version":"1363236232-import { z } from \"./new-file\";export const x = 1","signature":"-7495133367-export declare const x = 1;\n","impliedFormat":1},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n","impliedFormat":1}],"root":[[2,4]],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,4,2],"latestChangedDtsFile":"./new-file.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -417,35 +441,43 @@ CreatingProgramWith:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./new-file.ts": { "original": { "version": "-11960320495-export const z = 1;", - "signature": "-9207164725-export declare const z = 1;\n" + "signature": "-9207164725-export declare const z = 1;\n", + "impliedFormat": 1 }, "version": "-11960320495-export const z = 1;", - "signature": "-9207164725-export declare const z = 1;\n" + "signature": "-9207164725-export declare const z = 1;\n", + "impliedFormat": "commonjs" }, "./f1.ts": { "original": { "version": "1363236232-import { z } from \"./new-file\";export const x = 1", - "signature": "-7495133367-export declare const x = 1;\n" + "signature": "-7495133367-export declare const x = 1;\n", + "impliedFormat": 1 }, "version": "1363236232-import { z } from \"./new-file\";export const x = 1", - "signature": "-7495133367-export declare const x = 1;\n" + "signature": "-7495133367-export declare const x = 1;\n", + "impliedFormat": "commonjs" }, "./f2.ts": { "original": { "version": "-10905812331-export const y = 1", - "signature": "-6203665398-export declare const y = 1;\n" + "signature": "-6203665398-export declare const y = 1;\n", + "impliedFormat": 1 }, "version": "-10905812331-export const y = 1", - "signature": "-6203665398-export declare const y = 1;\n" + "signature": "-6203665398-export declare const y = 1;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -478,7 +510,7 @@ CreatingProgramWith:: "latestChangedDtsFile": "./new-file.d.ts" }, "version": "FakeTSVersion", - "size": 1037 + "size": 1109 } diff --git a/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js index 504974fcb0a3d..38b640299e33d 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js @@ -50,6 +50,10 @@ console.log(module_1.f); +PolledWatches:: +/a/b/c/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/b/c/app.ts: *new* {} diff --git a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js index 1faab6fa5c6b7..aadeb462e3363 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js +++ b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js @@ -51,8 +51,12 @@ T.bar(); PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -137,10 +141,14 @@ function bar() { } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -239,8 +247,12 @@ function bar() { } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile: diff --git a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js index 898b7194fc33f..e5857d0da01b3 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js +++ b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js @@ -45,6 +45,12 @@ T.bar(); +PolledWatches:: +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} @@ -108,6 +114,12 @@ Output:: //// [/users/username/projects/project/file1.js] file written with same contents +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} @@ -187,6 +199,12 @@ function bar() { } +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} diff --git a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js index d283faddfad04..9b176e96d01ca 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js +++ b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js @@ -58,8 +58,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js index e364de522cef5..c009bf11881eb 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js +++ b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js @@ -55,8 +55,12 @@ var b = a_1.a; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js index 68b4b708f8357..6ab976b649062 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js @@ -68,8 +68,14 @@ export declare const d = 30; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -165,8 +171,14 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js index e83c72807c485..6900c3b3f6eb5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js @@ -69,8 +69,14 @@ export declare const d = 30; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -167,8 +173,14 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js index 2be2cc91b9a21..2465704000f46 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js @@ -59,8 +59,14 @@ define(["require", "exports"], function (require, exports) { PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -151,8 +157,14 @@ define(["require", "exports"], function (require, exports) { PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js index 95dbc5ff7bab8..4707e7a00c457 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js @@ -56,8 +56,14 @@ define("src/file2", ["require", "exports"], function (require, exports) { PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -154,8 +160,14 @@ define("src/file3", ["require", "exports"], function (require, exports) { PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js index 640a1bdc51f24..68577024432c5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js @@ -67,8 +67,14 @@ export declare const d = 30; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -163,8 +169,14 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js index 317fb9efdd18e..de3fbbb8edd4e 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js @@ -58,8 +58,14 @@ define(["require", "exports"], function (require, exports) { PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -149,8 +155,14 @@ define(["require", "exports"], function (require, exports) { PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js index c6a37f4fba646..2499a5b328424 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js @@ -46,6 +46,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +PolledWatches:: +/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/b/file1.ts: *new* {} @@ -117,6 +121,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +PolledWatches *deleted*:: +/a/b/node_modules/package.json: + {"pollingInterval":2000} + FsWatches:: /a/b/file1.ts: {} 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 06ccd7c503dfc..40580d0dea8c6 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 @@ -58,8 +58,12 @@ function f(p) { return p; } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js index 8d5948ef61171..cb4a95722d578 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js @@ -46,8 +46,12 @@ Output:: PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js index 8763f49766f69..5dd56bdb5997c 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js @@ -54,8 +54,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js index 81f27897154bc..d582db7380418 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js @@ -49,8 +49,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js index 6e21d4cbb445a..e5fa57fd3a76e 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js @@ -49,8 +49,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js index 5c3ff2104166f..754536b5a66f2 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js @@ -52,8 +52,12 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -126,8 +130,12 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js index 5371bd71ae3e1..a0bbdcc81c659 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js @@ -41,6 +41,8 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -60,8 +62,12 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js index dd96e248eadea..c3d84f56ffd0f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js @@ -43,6 +43,8 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -66,8 +68,12 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -157,8 +163,12 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js b/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js index 823a240b0a5b4..40ca48ad532c2 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js @@ -50,6 +50,11 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/client/folder1/module1.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/client/linktofolder2/module2.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/client/folder1/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/client/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/folder2/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -81,10 +86,20 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: +/user/username/projects/myproject/client/folder1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/client/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/folder2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -180,10 +195,20 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: +/user/username/projects/myproject/client/folder1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/client/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/folder2/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js index d4eccc6dc5da9..a5c458e4997a4 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js @@ -93,7 +93,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,30 +107,36 @@ declare class class2 { "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -151,7 +157,7 @@ declare class class2 { "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 864 + "size": 918 } @@ -385,7 +391,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -400,39 +406,47 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class3.d.ts": { "original": { "version": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469165364-declare class class3 {}", "signature": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -454,7 +468,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 968 + "size": 1040 } @@ -589,7 +603,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -603,30 +617,36 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -645,7 +665,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 860 + "size": 914 } @@ -782,7 +802,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -797,39 +817,47 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class3.d.ts": { "original": { "version": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469165364-declare class class3 {}", "signature": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -851,7 +879,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 968 + "size": 1040 } diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js index 3bdb16aed4947..c59fefdc75cf6 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js @@ -91,7 +91,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,19 +104,23 @@ export declare class A { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7264743946-export class A {}", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 }, "version": "-7264743946-export class A {}", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -136,7 +140,7 @@ export declare class A { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 743 + "size": 779 } //// [/user/username/projects/transitiveReferences/b/index.js] @@ -153,7 +157,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -172,23 +176,32 @@ export declare const b: A; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../a/index.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-2591036212-import {A} from '@ref/a';\nexport const b = new A();", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": 1 }, "version": "-2591036212-import {A} from '@ref/a';\nexport const b = new A();", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -213,7 +226,7 @@ export declare const b: A; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 895 + "size": 961 } //// [/user/username/projects/transitiveReferences/c/index.js] @@ -231,6 +244,12 @@ Output:: >> Screen clear [12:00:59 AM] Starting compilation in watch mode... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -251,10 +270,31 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -276,10 +316,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -396,7 +448,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -415,23 +467,32 @@ export declare function gfoo(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../a/index.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }", - "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" + "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n", + "impliedFormat": 1 }, "version": "1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }", - "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" + "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -456,7 +517,7 @@ export declare function gfoo(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 958 + "size": 1024 } @@ -471,6 +532,33 @@ Output:: >> Screen clear [12:01:19 AM] File change detected. Starting incremental compilation... +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -585,6 +673,12 @@ Output:: >> Screen clear [12:01:31 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -605,10 +699,31 @@ File '/user/username/projects/transitiveReferences/nrefs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/nrefs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/nrefs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/nrefs/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -630,10 +745,26 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -761,6 +892,12 @@ Output:: >> Screen clear [12:01:39 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -781,10 +918,31 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -806,10 +964,26 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: *new* + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -938,12 +1112,39 @@ Output:: >> Screen clear [12:01:47 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/nrefs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' nrefs/a.d.ts @@ -963,10 +1164,26 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1095,12 +1312,33 @@ Output:: >> Screen clear [12:01:53 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' refs/a.d.ts @@ -1119,10 +1357,24 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1227,8 +1479,20 @@ Output:: >> Screen clear [12:01:56 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. @@ -1240,6 +1504,15 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. c/tsconfig.json:11:5 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. 11 { @@ -1268,10 +1541,20 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1396,12 +1679,39 @@ Output:: >> Screen clear [12:02:06 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -1423,10 +1733,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1541,9 +1863,36 @@ Output:: >> Screen clear [12:02:12 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. b/tsconfig.json:12:5 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. 12 { @@ -1573,10 +1922,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1697,9 +2058,36 @@ Output:: >> Screen clear [12:02:20 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -1720,10 +2108,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js index 9ea8228c61bf2..b349befb3fd4c 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js @@ -100,7 +100,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7264743946-export class A {}","signature":"-8728835846-export declare class A {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/a/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -113,19 +113,23 @@ export declare class A { "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-7264743946-export class A {}", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 }, "version": "-7264743946-export class A {}", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -145,7 +149,7 @@ export declare class A { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 743 + "size": 779 } //// [/user/username/projects/transitiveReferences/b/index.js] @@ -162,7 +166,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"-2591036212-import {A} from '@ref/a';\nexport const b = new A();","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export declare const b: A; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../a/index.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-2591036212-import {A} from '@ref/a';\nexport const b = new A();", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": 1 }, "version": "-2591036212-import {A} from '@ref/a';\nexport const b = new A();", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -222,7 +235,7 @@ export declare const b: A; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 895 + "size": 961 } //// [/user/username/projects/transitiveReferences/c/index.js] @@ -240,6 +253,12 @@ Output:: >> Screen clear [12:00:59 AM] Starting compilation in watch mode... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -260,10 +279,31 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -285,10 +325,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -403,7 +455,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../a/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/b/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -422,23 +474,32 @@ export declare function gfoo(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../a/index.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }", - "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" + "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n", + "impliedFormat": 1 }, "version": "1841609480-import {A} from '@ref/a';\nexport const b = new A();export function gfoo() { }", - "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" + "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -463,7 +524,7 @@ export declare function gfoo(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 958 + "size": 1024 } @@ -478,6 +539,33 @@ Output:: >> Screen clear [12:01:19 AM] File change detected. Starting incremental compilation... +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -595,6 +683,12 @@ Output:: >> Screen clear [12:01:31 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -615,10 +709,31 @@ File '/user/username/projects/transitiveReferences/nrefs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/nrefs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/nrefs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/nrefs/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -640,10 +755,26 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -772,6 +903,12 @@ Output:: >> Screen clear [12:01:39 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '../b' from '/user/username/projects/transitiveReferences/c/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -792,10 +929,31 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -817,10 +975,26 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: *new* + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -950,12 +1124,39 @@ Output:: >> Screen clear [12:01:47 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/nrefs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' nrefs/a.d.ts @@ -975,10 +1176,26 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1110,12 +1327,33 @@ Output:: >> Screen clear [12:01:53 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' refs/a.d.ts @@ -1134,10 +1372,24 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1238,8 +1490,20 @@ Output:: >> Screen clear [12:01:56 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences/c', using this value to resolve non-relative module name '@ref/a'. @@ -1251,6 +1515,15 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. c/tsconfig.json:14:5 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. 14 { @@ -1279,10 +1552,20 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1404,12 +1687,39 @@ Output:: >> Screen clear [12:02:06 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/b/tsconfig.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. ======== +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -1431,10 +1741,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1547,9 +1869,36 @@ Output:: >> Screen clear [12:02:12 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. b/tsconfig.json:15:5 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. 15 { @@ -1579,10 +1928,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1704,9 +2065,36 @@ Output:: >> Screen clear [12:02:20 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/c/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/b/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. +File '/user/username/projects/transitiveReferences/a/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a/index.d.ts @@ -1727,10 +2115,22 @@ c/index.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/a/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/b/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/c/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js index f8bedffcb4ecd..4564a268e5093 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js @@ -105,7 +105,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -118,19 +118,23 @@ export declare class A { "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 }, "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -150,7 +154,7 @@ export declare class A { "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 814 + "size": 850 } //// [/user/username/projects/transitiveReferences/b.js] @@ -167,7 +171,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -186,23 +190,32 @@ export declare const b: A; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": 1 }, "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", - "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" + "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -227,7 +240,7 @@ export declare const b: A; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 959 + "size": 1025 } //// [/user/username/projects/transitiveReferences/c.js] @@ -245,6 +258,11 @@ Output:: >> Screen clear [12:00:53 AM] Starting compilation in watch mode... +File '/user/username/projects/transitiveReferences/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -261,10 +279,29 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a.d.ts @@ -286,8 +323,14 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -397,7 +440,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -416,23 +459,32 @@ export declare function gfoo(): void; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }", - "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" + "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n", + "impliedFormat": 1 }, "version": "-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }", - "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" + "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -457,7 +509,7 @@ export declare function gfoo(): void; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 1023 + "size": 1089 } @@ -472,6 +524,30 @@ Output:: >> Screen clear [12:01:13 AM] File change detected. Starting incremental compilation... +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -587,6 +663,11 @@ Output:: >> Screen clear [12:01:25 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -603,10 +684,29 @@ File '/user/username/projects/transitiveReferences/nrefs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/nrefs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/nrefs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/nrefs/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a.d.ts @@ -628,8 +728,18 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -752,6 +862,11 @@ Output:: >> Screen clear [12:01:33 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -768,10 +883,29 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a.d.ts @@ -793,8 +927,18 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: *new* + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -918,12 +1062,37 @@ Output:: >> Screen clear [12:01:41 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/nrefs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/nrefs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' nrefs/a.d.ts @@ -943,8 +1112,16 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1068,12 +1245,31 @@ Output:: >> Screen clear [12:01:47 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' refs/a.d.ts @@ -1092,8 +1288,18 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/transitiveReferences/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1188,8 +1394,18 @@ Output:: >> Screen clear [12:01:50 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Module resolution kind is not specified, using 'Node10'. 'baseUrl' option is set to '/user/username/projects/transitiveReferences', using this value to resolve non-relative module name '@ref/a'. @@ -1201,6 +1417,15 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. tsconfig.c.json:14:5 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.b.json' not found. 14 { @@ -1229,8 +1454,14 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1343,12 +1574,36 @@ Output:: >> Screen clear [12:02:00 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. Module resolution kind is not specified, using 'Node10'. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a.d.ts @@ -1370,8 +1625,14 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1473,9 +1734,33 @@ Output:: >> Screen clear [12:02:06 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. tsconfig.b.json:15:5 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.a.json' not found. 15 { @@ -1505,8 +1790,14 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1617,9 +1908,33 @@ Output:: >> Screen clear [12:02:14 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a.d.ts @@ -1640,8 +1955,14 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js index 7d7ce74963a81..a17b6ed3ebab6 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js @@ -127,7 +127,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -142,36 +142,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -203,7 +211,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1442 } @@ -212,6 +220,12 @@ Output:: >> Screen clear [12:00:56 AM] Starting compilation in watch mode... +File '/user/username/projects/sample1/logic/package.json' does not exist. +File '/user/username/projects/sample1/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file types: TypeScript, Declaration. @@ -222,6 +236,21 @@ Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file types: TypeScript, Declaration. File '/user/username/projects/sample1/core/anotherModule.ts' exists - use it as a name resolution result. ======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== +File '/user/username/projects/sample1/core/package.json' does not exist. +File '/user/username/projects/sample1/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/sample1/core/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/sample1/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' core/index.d.ts @@ -259,7 +288,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -280,27 +309,41 @@ export declare const m: typeof mod; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../core/index.d.ts": { + "original": { + "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 + }, "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "../core/anothermodule.d.ts": { + "original": { + "version": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 + }, "version": "-9234818176-export declare const World = \"hello\";\n", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": 1 }, "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", - "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" + "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -330,17 +373,25 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1398 + "size": 1494 } PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} /user/username/projects/sample1/logic/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} /user/username/projects/sample1/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -437,7 +488,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n","impliedFormat":1},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","impliedFormat":1},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true,"impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -452,36 +503,44 @@ export declare function multiply(a: number, b: number): number; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./anothermodule.ts": { "original": { "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": 1 }, "version": "-3090574810-export const World = \"hello\";", - "signature": "-9234818176-export declare const World = \"hello\";\n" + "signature": "-9234818176-export declare const World = \"hello\";\n", + "impliedFormat": "commonjs" }, "./index.ts": { "original": { "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": 1 }, "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", - "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", + "impliedFormat": "commonjs" }, "./some_decl.d.ts": { "original": { "version": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7959511260-declare const dts: any;", "signature": "-7959511260-declare const dts: any;", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -513,7 +572,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1371 + "size": 1443 } @@ -528,8 +587,29 @@ Output:: >> Screen clear [12:01:24 AM] File change detected. Starting incremental compilation... +File '/user/username/projects/sample1/logic/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/sample1/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module '../core/index' from '/user/username/projects/sample1/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/index.ts'. Reusing resolution of module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. +File '/user/username/projects/sample1/core/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/sample1/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/sample1/core/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/sample1/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' core/index.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js index a31850c20d0fc..58bd3c0d9434d 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js @@ -98,7 +98,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n","impliedFormat":1}],"root":[2],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -111,19 +111,23 @@ export declare class A { "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 }, "version": "-7808316224-export class A {}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -143,7 +147,7 @@ export declare class A { "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 814 + "size": 850 } //// [/user/username/projects/transitiveReferences/b.js] @@ -160,7 +164,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8728835846-export declare class A {\n}\n","impliedFormat":1},{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n","impliedFormat":1}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -179,23 +183,32 @@ export declare const b: A; "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.d.ts": { + "original": { + "version": "-8728835846-export declare class A {\n}\n", + "impliedFormat": 1 + }, "version": "-8728835846-export declare class A {\n}\n", - "signature": "-8728835846-export declare class A {\n}\n" + "signature": "-8728835846-export declare class A {\n}\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-19869990292-import {A} from \"a\";export const b = new A();", - "signature": "1870369234-import { A } from \"a\";\nexport declare const b: A;\n" + "signature": "1870369234-import { A } from \"a\";\nexport declare const b: A;\n", + "impliedFormat": 1 }, "version": "-19869990292-import {A} from \"a\";export const b = new A();", - "signature": "1870369234-import { A } from \"a\";\nexport declare const b: A;\n" + "signature": "1870369234-import { A } from \"a\";\nexport declare const b: A;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +233,7 @@ export declare const b: A; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 949 + "size": 1015 } //// [/user/username/projects/transitiveReferences/c.js] @@ -238,6 +251,11 @@ Output:: >> Screen clear [12:00:53 AM] Starting compilation in watch mode... +File '/user/username/projects/transitiveReferences/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module './b' from '/user/username/projects/transitiveReferences/c.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/transitiveReferences/b', target file types: TypeScript, Declaration. @@ -254,10 +272,29 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module 'a' from '/user/username/projects/transitiveReferences/b.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/transitiveReferences/tsconfig.b.json'. Explicitly specified module resolution kind: 'Classic'. ======== Module name 'a' was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. ======== +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/transitiveReferences/refs/package.json' does not exist. +File '/user/username/projects/transitiveReferences/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. ../../../../a/lib/lib.d.ts Default library for target 'es5' a.d.ts @@ -279,8 +316,14 @@ c.ts PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/transitiveReferences/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/transitiveReferences/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/transitiveReferences/refs/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js index 23b437452f68e..7caeb38826fbb 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js @@ -51,6 +51,14 @@ define(["require", "exports"], function (require, exports) { +PolledWatches:: +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/d/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} @@ -190,6 +198,14 @@ define(["require", "exports"], function (require, exports) { +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/d/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} @@ -259,6 +275,14 @@ Output:: //// [/users/username/projects/project/f1.js] file written with same contents //// [/users/username/projects/project/d/f0.js] file written with same contents +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/d/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} diff --git a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js index 8865b554a5b2f..f986055f840e4 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js @@ -41,8 +41,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/somemodule/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js index 520a8398a029f..1a78bfe5b00e3 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js @@ -38,6 +38,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); +PolledWatches:: +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/somemodule/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} diff --git a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js index fb95cd5f7a975..a65e8269bd409 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js @@ -39,6 +39,12 @@ define(["require", "exports"], function (require, exports) { +PolledWatches:: +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} @@ -99,6 +105,12 @@ Output:: //// [/users/username/projects/project/foo.js] file written with same contents +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} diff --git a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js index ac4035e5123c3..4572ce0ab25d3 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js @@ -51,6 +51,11 @@ Synchronizing program CreatingProgramWith:: roots: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +File '/users/username/projects/project/package.json' does not exist. +File '/users/username/projects/package.json' does not exist. +File '/users/username/package.json' does not exist. +File '/users/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /users/username/projects/project/fileWithImports.ts 250 undefined Source file ======== Resolving module 'pkg0' from '/users/username/projects/project/fileWithImports.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -86,7 +91,19 @@ Directory '/users/username/node_modules' does not exist, skipping all lookups in Directory '/users/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name 'pkg1' was not resolved. ======== +File '/users/username/projects/project/node_modules/pkg0/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/pkg0/index.d.ts 250 undefined Source file +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /users/username/projects/project/fileWithTypeRefs.ts 250 undefined Source file ======== Resolving type reference directive 'pkg2', containing file '/users/username/projects/project/fileWithTypeRefs.ts', root directory '/users/username/projects/project/node_modules/@types,/users/username/projects/node_modules/@types,/users/username/node_modules/@types,/users/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/users/username/projects/project/node_modules/@types, /users/username/projects/node_modules/@types, /users/username/node_modules/@types, /users/node_modules/@types, /node_modules/@types'. @@ -122,8 +139,22 @@ Directory '/users/username/node_modules' does not exist, skipping all lookups in Directory '/users/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Type reference directive 'pkg3' was not resolved. ======== +File '/users/username/projects/project/node_modules/pkg2/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/pkg2/index.d.ts 250 undefined Source file +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/pkg0/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Type roots @@ -180,7 +211,7 @@ export {}; //// [/users/username/projects/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../node_modules/pkg0/index.d.ts","../filewithimports.ts","../node_modules/pkg2/index.d.ts","../filewithtyperefs.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8124756421-export interface Import0 {}",{"version":"-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n","signature":"-3531856636-export {};\n"},{"version":"-11273315461-interface Import2 {}","affectsGlobalScope":true},{"version":"-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n","signature":"-3531856636-export {};\n"}],"root":[3,5],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"../filewithimports.ts","start":66,"length":6,"messageText":"Cannot find module 'pkg1' or its corresponding type declarations.","category":1,"code":2307}]],[5,[{"file":"../filewithtyperefs.ts","start":102,"length":7,"messageText":"Cannot find name 'Import3'. Did you mean 'Import2'?","category":1,"code":2552}]],2,4],"latestChangedDtsFile":"./fileWithTypeRefs.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../node_modules/pkg0/index.d.ts","../filewithimports.ts","../node_modules/pkg2/index.d.ts","../filewithtyperefs.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8124756421-export interface Import0 {}","impliedFormat":1},{"version":"-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-11273315461-interface Import2 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3,5],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"../filewithimports.ts","start":66,"length":6,"messageText":"Cannot find module 'pkg1' or its corresponding type declarations.","category":1,"code":2307}]],[5,[{"file":"../filewithtyperefs.ts","start":102,"length":7,"messageText":"Cannot find name 'Import3'. Did you mean 'Import2'?","category":1,"code":2552}]],2,4],"latestChangedDtsFile":"./fileWithTypeRefs.d.ts"},"version":"FakeTSVersion"} //// [/users/username/projects/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -204,40 +235,53 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/pkg0/index.d.ts": { + "original": { + "version": "-8124756421-export interface Import0 {}", + "impliedFormat": 1 + }, "version": "-8124756421-export interface Import0 {}", - "signature": "-8124756421-export interface Import0 {}" + "signature": "-8124756421-export interface Import0 {}", + "impliedFormat": "commonjs" }, "../filewithimports.ts": { "original": { "version": "-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../node_modules/pkg2/index.d.ts": { "original": { "version": "-11273315461-interface Import2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-11273315461-interface Import2 {}", "signature": "-11273315461-interface Import2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../filewithtyperefs.ts": { "original": { "version": "-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -296,7 +340,7 @@ export {}; "latestChangedDtsFile": "./fileWithTypeRefs.d.ts" }, "version": "FakeTSVersion", - "size": 1596 + "size": 1698 } @@ -305,8 +349,16 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/pkg0/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -417,6 +469,38 @@ Synchronizing program CreatingProgramWith:: roots: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg0/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg2/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module 'pkg0' from '/users/username/projects/project/fileWithImports.ts' of old program, it was successfully resolved to '/users/username/projects/project/node_modules/pkg0/index.d.ts'. ======== Resolving module 'pkg1' from '/users/username/projects/project/fileWithImports.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -431,9 +515,39 @@ File '/users/username/projects/project/node_modules/pkg1/index.tsx' does not exi File '/users/username/projects/project/node_modules/pkg1/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/users/username/projects/project/node_modules/pkg1/index.d.ts', result '/users/username/projects/project/node_modules/pkg1/index.d.ts'. ======== Module name 'pkg1' was successfully resolved to '/users/username/projects/project/node_modules/pkg1/index.d.ts'. ======== +File '/users/username/projects/project/node_modules/pkg0/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg1/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/pkg1/index.d.ts 250 undefined Source file +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'pkg2' from '/users/username/projects/project/fileWithTypeRefs.ts' of old program, it was successfully resolved to '/users/username/projects/project/node_modules/pkg2/index.d.ts'. Reusing resolution of type reference directive 'pkg3' from '/users/username/projects/project/fileWithTypeRefs.ts' of old program, it was not resolved. +File '/users/username/projects/project/node_modules/pkg2/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/pkg1/package.json 2000 undefined File location affecting resolution fileWithTypeRefs.ts:2:23 - error TS2688: Cannot find type definition file for 'pkg3'. 2 /// @@ -462,7 +576,7 @@ fileWithTypeRefs.ts //// [/users/username/projects/project/outDir/fileWithImports.js] file written with same contents //// [/users/username/projects/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../node_modules/pkg0/index.d.ts","../node_modules/pkg1/index.d.ts","../filewithimports.ts","../node_modules/pkg2/index.d.ts","../filewithtyperefs.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8124756421-export interface Import0 {}","-8124720484-export interface Import1 {}",{"version":"-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n","signature":"-3531856636-export {};\n"},{"version":"-11273315461-interface Import2 {}","affectsGlobalScope":true},{"version":"-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n","signature":"-3531856636-export {};\n"}],"root":[4,6],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2,3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,4,[6,[{"file":"../filewithtyperefs.ts","start":102,"length":7,"messageText":"Cannot find name 'Import3'. Did you mean 'Import2'?","category":1,"code":2552}]],2,3,5],"latestChangedDtsFile":"./fileWithTypeRefs.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../node_modules/pkg0/index.d.ts","../node_modules/pkg1/index.d.ts","../filewithimports.ts","../node_modules/pkg2/index.d.ts","../filewithtyperefs.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8124756421-export interface Import0 {}","impliedFormat":1},{"version":"-8124720484-export interface Import1 {}","impliedFormat":1},{"version":"-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-11273315461-interface Import2 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4,6],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2,3],[5]],"referencedMap":[[4,1],[6,2]],"semanticDiagnosticsPerFile":[1,4,[6,[{"file":"../filewithtyperefs.ts","start":102,"length":7,"messageText":"Cannot find name 'Import3'. Did you mean 'Import2'?","category":1,"code":2552}]],2,3,5],"latestChangedDtsFile":"./fileWithTypeRefs.d.ts"},"version":"FakeTSVersion"} //// [/users/username/projects/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -488,44 +602,62 @@ fileWithTypeRefs.ts "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/pkg0/index.d.ts": { + "original": { + "version": "-8124756421-export interface Import0 {}", + "impliedFormat": 1 + }, "version": "-8124756421-export interface Import0 {}", - "signature": "-8124756421-export interface Import0 {}" + "signature": "-8124756421-export interface Import0 {}", + "impliedFormat": "commonjs" }, "../node_modules/pkg1/index.d.ts": { + "original": { + "version": "-8124720484-export interface Import1 {}", + "impliedFormat": 1 + }, "version": "-8124720484-export interface Import1 {}", - "signature": "-8124720484-export interface Import1 {}" + "signature": "-8124720484-export interface Import1 {}", + "impliedFormat": "commonjs" }, "../filewithimports.ts": { "original": { "version": "-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../node_modules/pkg2/index.d.ts": { "original": { "version": "-11273315461-interface Import2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-11273315461-interface Import2 {}", "signature": "-11273315461-interface Import2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../filewithtyperefs.ts": { "original": { "version": "-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -574,7 +706,7 @@ fileWithTypeRefs.ts "latestChangedDtsFile": "./fileWithTypeRefs.d.ts" }, "version": "FakeTSVersion", - "size": 1510 + "size": 1642 } @@ -583,8 +715,18 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/node_modules/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/pkg0/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/pkg1/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -693,8 +835,66 @@ Synchronizing program CreatingProgramWith:: roots: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg0/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg1/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg2/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of module 'pkg0' from '/users/username/projects/project/fileWithImports.ts' of old program, it was successfully resolved to '/users/username/projects/project/node_modules/pkg0/index.d.ts'. Reusing resolution of module 'pkg1' from '/users/username/projects/project/fileWithImports.ts' of old program, it was successfully resolved to '/users/username/projects/project/node_modules/pkg1/index.d.ts'. +File '/users/username/projects/project/node_modules/pkg0/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg1/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'pkg2' from '/users/username/projects/project/fileWithTypeRefs.ts' of old program, it was successfully resolved to '/users/username/projects/project/node_modules/pkg2/index.d.ts'. ======== Resolving type reference directive 'pkg3', containing file '/users/username/projects/project/fileWithTypeRefs.ts', root directory '/users/username/projects/project/node_modules/@types,/users/username/projects/node_modules/@types,/users/username/node_modules/@types,/users/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/users/username/projects/project/node_modules/@types, /users/username/projects/node_modules/@types, /users/username/node_modules/@types, /users/node_modules/@types, /node_modules/@types'. @@ -710,7 +910,25 @@ File '/users/username/projects/project/node_modules/pkg3.d.ts' does not exist. File '/users/username/projects/project/node_modules/pkg3/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/users/username/projects/project/node_modules/pkg3/index.d.ts', result '/users/username/projects/project/node_modules/pkg3/index.d.ts'. ======== Type reference directive 'pkg3' was successfully resolved to '/users/username/projects/project/node_modules/pkg3/index.d.ts', primary: false. ======== +File '/users/username/projects/project/node_modules/pkg2/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/pkg3/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/project/package.json' does not exist according to earlier cached lookups. +File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +File '/users/username/package.json' does not exist according to earlier cached lookups. +File '/users/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/pkg3/index.d.ts 250 undefined Source file +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/pkg3/package.json 2000 undefined File location affecting resolution fileWithTypeRefs.ts:3:43 - error TS2552: Cannot find name 'Import3'. Did you mean 'Import2'? 3 interface LocalInterface extends Import2, Import3 {} @@ -736,7 +954,7 @@ fileWithTypeRefs.ts //// [/users/username/projects/project/outDir/fileWithTypeRefs.js] file written with same contents //// [/users/username/projects/project/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../node_modules/pkg0/index.d.ts","../node_modules/pkg1/index.d.ts","../filewithimports.ts","../node_modules/pkg2/index.d.ts","../node_modules/pkg3/index.d.ts","../filewithtyperefs.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8124756421-export interface Import0 {}","-8124720484-export interface Import1 {}",{"version":"-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n","signature":"-3531856636-export {};\n"},{"version":"-11273315461-interface Import2 {}","affectsGlobalScope":true},"-8124648610-export interface Import3 {}",{"version":"-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n","signature":"-3531856636-export {};\n"}],"root":[4,7],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2,3],[5,6]],"referencedMap":[[4,1],[7,2]],"semanticDiagnosticsPerFile":[1,4,[7,[{"file":"../filewithtyperefs.ts","start":102,"length":7,"messageText":"Cannot find name 'Import3'. Did you mean 'Import2'?","category":1,"code":2552}]],2,3,5,6],"latestChangedDtsFile":"./fileWithTypeRefs.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../node_modules/pkg0/index.d.ts","../node_modules/pkg1/index.d.ts","../filewithimports.ts","../node_modules/pkg2/index.d.ts","../node_modules/pkg3/index.d.ts","../filewithtyperefs.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8124756421-export interface Import0 {}","impliedFormat":1},{"version":"-8124720484-export interface Import1 {}","impliedFormat":1},{"version":"-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-11273315461-interface Import2 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8124648610-export interface Import3 {}","impliedFormat":1},{"version":"-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4,7],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2,3],[5,6]],"referencedMap":[[4,1],[7,2]],"semanticDiagnosticsPerFile":[1,4,[7,[{"file":"../filewithtyperefs.ts","start":102,"length":7,"messageText":"Cannot find name 'Import3'. Did you mean 'Import2'?","category":1,"code":2552}]],2,3,5,6],"latestChangedDtsFile":"./fileWithTypeRefs.d.ts"},"version":"FakeTSVersion"} //// [/users/username/projects/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -764,48 +982,71 @@ fileWithTypeRefs.ts "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/pkg0/index.d.ts": { + "original": { + "version": "-8124756421-export interface Import0 {}", + "impliedFormat": 1 + }, "version": "-8124756421-export interface Import0 {}", - "signature": "-8124756421-export interface Import0 {}" + "signature": "-8124756421-export interface Import0 {}", + "impliedFormat": "commonjs" }, "../node_modules/pkg1/index.d.ts": { + "original": { + "version": "-8124720484-export interface Import1 {}", + "impliedFormat": 1 + }, "version": "-8124720484-export interface Import1 {}", - "signature": "-8124720484-export interface Import1 {}" + "signature": "-8124720484-export interface Import1 {}", + "impliedFormat": "commonjs" }, "../filewithimports.ts": { "original": { "version": "-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-14287751515-import type { Import0 } from \"pkg0\";\nimport type { Import1 } from \"pkg1\";\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../node_modules/pkg2/index.d.ts": { "original": { "version": "-11273315461-interface Import2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-11273315461-interface Import2 {}", "signature": "-11273315461-interface Import2 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../node_modules/pkg3/index.d.ts": { + "original": { + "version": "-8124648610-export interface Import3 {}", + "impliedFormat": 1 + }, "version": "-8124648610-export interface Import3 {}", - "signature": "-8124648610-export interface Import3 {}" + "signature": "-8124648610-export interface Import3 {}", + "impliedFormat": "commonjs" }, "../filewithtyperefs.ts": { "original": { "version": "-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-12735305811-/// \n/// \ninterface LocalInterface extends Import2, Import3 {}\nexport {}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -856,7 +1097,7 @@ fileWithTypeRefs.ts "latestChangedDtsFile": "./fileWithTypeRefs.d.ts" }, "version": "FakeTSVersion", - "size": 1590 + "size": 1752 } @@ -865,8 +1106,20 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/node_modules/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/pkg0/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/pkg1/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/pkg3/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js index aedf7d142e541..dbbded0d33e69 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js @@ -34,6 +34,12 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/lib/app.ts"] options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/user/username/projects/myproject/lib/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib/app.ts 250 undefined Source file ======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -60,6 +66,9 @@ Directory '/user/username/node_modules' does not exist, skipping all lookups in Directory '/user/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@myapp/ts-types' was not resolved. ======== +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib 1 undefined Failed Lookup Locations @@ -67,6 +76,9 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -93,14 +105,20 @@ var x = ts_types_1.myapp; PolledWatches:: +/user/username/projects/myproject/lib/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -174,12 +192,18 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec PolledWatches:: +/user/username/projects/myproject/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/node_modules: @@ -231,6 +255,21 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/lib/app.ts"] options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/lib/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/lib/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module '@myapp/ts-types' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -255,6 +294,9 @@ Directory '/user/username/node_modules' does not exist, skipping all lookups in Directory '/user/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@myapp/ts-types' was not resolved. ======== +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. lib/app.ts:1:23 - error TS2307: Cannot find module '@myapp/ts-types' or its corresponding type declarations. 1 import { myapp } from "@myapp/ts-types"; @@ -345,6 +387,21 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/lib/app.ts"] options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/lib/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/lib/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module '@myapp/ts-types' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -374,6 +431,9 @@ Directory '/user/username/node_modules' does not exist, skipping all lookups in Directory '/user/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@myapp/ts-types' was not resolved. ======== +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. lib/app.ts:1:23 - error TS2307: Cannot find module '@myapp/ts-types' or its corresponding type declarations. 1 import { myapp } from "@myapp/ts-types"; @@ -502,6 +562,21 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/lib/app.ts"] options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/lib/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/lib/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module '@myapp/ts-types' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -517,7 +592,21 @@ File '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.tsx' File '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.d.ts', result '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.d.ts'. ======== Module name '@myapp/ts-types' was successfully resolved to '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.d.ts'. ======== +File '/user/username/projects/myproject/node_modules/@myapp/ts-types/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/myproject/node_modules/@myapp/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +File '/user/username/package.json' does not exist according to earlier cached lookups. +File '/user/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@myapp/ts-types/index.d.ts 250 undefined Source file +File '/a/lib/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@myapp/ts-types/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@myapp/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations [12:00:56 AM] Found 0 errors. Watching for file changes. @@ -527,10 +616,22 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node //// [/user/username/projects/myproject/lib/app.js] file written with same contents PolledWatches:: +/user/username/projects/myproject/lib/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@myapp/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@myapp/ts-types/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/node_modules: diff --git a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js index 1403239b79801..57bd70ec28b85 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js @@ -37,6 +37,12 @@ define(["require", "exports"], function (require, exports) { +PolledWatches:: +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} @@ -102,6 +108,12 @@ Output:: //// [/users/username/projects/project/foo.js] file written with same contents +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} @@ -171,6 +183,12 @@ Output:: //// [/users/username/projects/project/foo.js] file written with same contents +PolledWatches:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} diff --git a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js index ec5c8f22c6982..b593eb91d3f7d 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js @@ -61,14 +61,22 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: +/user/username/projects/myproject/linked-package/dist/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/@scoped: *new* {"pollingInterval":500} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js index 220bdc9a91feb..3a66488397b45 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js @@ -54,10 +54,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js index dd63df4d22aa9..bc5ca72d583fe 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js @@ -370,6 +370,11 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/worker.ts"] options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/mocha/index.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/mocha/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution worker.ts:1:1 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. 1 process.on("uncaughtException"); @@ -381,8 +386,18 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/ PolledWatches:: +/user/username/projects/myproject/node_modules/@types/mocha/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -471,10 +486,20 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node PolledWatches:: +/user/username/projects/myproject/node_modules/@types/mocha/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -590,8 +615,18 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node //// [/user/username/projects/myproject/worker.js] file written with same contents PolledWatches:: +/user/username/projects/myproject/node_modules/@types/mocha/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/node_modules: diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js index cbcd69cbb137a..605f597efc9c7 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js @@ -42,10 +42,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -103,6 +107,10 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/node_modules: @@ -144,6 +152,10 @@ Output:: PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/node_modules: diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js index e2c38427135fd..b7967af2998c8 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js @@ -45,10 +45,14 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -91,10 +95,14 @@ sysLog:: /user/username/projects/myproject/node_modules/@types:: Changing watche PolledWatches:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/node_modules: @@ -134,8 +142,18 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents PolledWatches:: +/user/username/projects/myproject/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types/qqq/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/node_modules: diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js index 081a97c44ef30..2c72867dc2212 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js @@ -63,14 +63,24 @@ module11("hello"); PolledWatches:: /a/b/projects/myProject/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/myProject/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/a/b/projects/myProject/node_modules/package.json: *new* + {"pollingInterval":2000} +/a/b/projects/myProject/package.json: *new* + {"pollingInterval":2000} /a/b/projects/myProject/src/node_modules: *new* {"pollingInterval":500} /a/b/projects/myProject/src/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/myProject/src/package.json: *new* + {"pollingInterval":2000} /a/b/projects/node_modules: *new* {"pollingInterval":500} /a/b/projects/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/b/projects/myProject/node_modules/module1/index.js: *new* diff --git a/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js index 925afe00df651..4ba78980f912c 100644 --- a/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js +++ b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js @@ -52,7 +52,7 @@ var x = data_json_1.default; //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./data.d.json.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"2718060498-declare var val: string; export default val;","6961905452-import data from \"./data.json\"; let x: string = data;"],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./main.ts","start":17,"length":13,"messageText":"Module './data.json' was resolved to '/src/project/data.d.json.ts', but '--allowArbitraryExtensions' is not set.","category":1,"code":6263}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./data.d.json.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"2718060498-declare var val: string; export default val;","impliedFormat":1},{"version":"6961905452-import data from \"./data.json\"; let x: string = data;","impliedFormat":1}],"root":[2,3],"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./main.ts","start":17,"length":13,"messageText":"Module './data.json' was resolved to '/src/project/data.d.json.ts', but '--allowArbitraryExtensions' is not set.","category":1,"code":6263}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -66,19 +66,31 @@ var x = data_json_1.default; "../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./data.d.json.ts": { + "original": { + "version": "2718060498-declare var val: string; export default val;", + "impliedFormat": 1 + }, "version": "2718060498-declare var val: string; export default val;", - "signature": "2718060498-declare var val: string; export default val;" + "signature": "2718060498-declare var val: string; export default val;", + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "6961905452-import data from \"./data.json\"; let x: string = data;", + "impliedFormat": 1 + }, "version": "6961905452-import data from \"./data.json\"; let x: string = data;", - "signature": "6961905452-import data from \"./data.json\"; let x: string = data;" + "signature": "6961905452-import data from \"./data.json\"; let x: string = data;", + "impliedFormat": "commonjs" } }, "root": [ @@ -111,7 +123,7 @@ var x = data_json_1.default; ] }, "version": "FakeTSVersion", - "size": 918 + "size": 996 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js index 8c4ab1ffd2d29..011538f3153c2 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js @@ -85,7 +85,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,27 +99,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -146,7 +152,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -163,7 +169,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -184,27 +190,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -233,7 +253,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1009 + "size": 1105 } @@ -248,7 +268,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -269,27 +289,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -318,23 +352,35 @@ Output:: "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 977 + "size": 1073 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js index 167a02d2d14fb..798ce6ececce9 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js @@ -87,7 +87,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,27 +101,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -148,7 +154,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -165,7 +171,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/index.d.ts","../../node_modules/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/index.d.ts","../../node_modules/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -186,27 +192,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -235,7 +255,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1041 + "size": 1137 } @@ -250,7 +270,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,27 +291,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -320,23 +354,35 @@ Output:: "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 977 + "size": 1073 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js index 05872f7e2b0c7..683b37578bd2b 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js @@ -88,7 +88,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -109,27 +109,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -158,23 +172,35 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 977 + "size": 1073 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js index f4c6718268617..1ad13a2a752e5 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js @@ -85,7 +85,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,27 +99,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -146,7 +152,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -163,7 +169,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -184,27 +190,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -233,7 +253,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1023 + "size": 1119 } @@ -248,7 +268,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -269,27 +289,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -318,23 +352,35 @@ Output:: "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 991 + "size": 1087 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index ec4c1977f91c3..725a5c4380ab7 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -87,7 +87,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,27 +101,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -148,7 +154,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -165,7 +171,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/index.d.ts","../../node_modules/@issue/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/index.d.ts","../../node_modules/@issue/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -186,27 +192,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -235,7 +255,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1069 + "size": 1165 } @@ -250,7 +270,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/index.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,27 +291,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -320,23 +354,35 @@ Output:: "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 991 + "size": 1087 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js index 0b52a87316a2b..1f69e3ace23e3 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js @@ -88,7 +88,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -109,27 +109,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -158,23 +172,35 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 991 + "size": 1087 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js index 2b9dc88274453..c368d0e809e8d 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js @@ -86,7 +86,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,27 +107,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -156,23 +170,35 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 991 + "size": 1087 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js index 77940478d6b6c..bae89c2108c05 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js @@ -86,7 +86,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/index.ts","../b/src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,27 +107,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/index.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -156,23 +170,35 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 977 + "size": 1073 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js index 80289442f1a86..6735da288e6ac 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js @@ -82,7 +82,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -96,27 +96,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -143,7 +149,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -160,7 +166,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,27 +187,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -230,7 +250,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1022 + "size": 1118 } @@ -245,7 +265,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -266,27 +286,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -315,23 +349,37 @@ Output:: "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 990 + "size": 1086 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js index 259f857f09593..037aff92ef9a6 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js @@ -84,7 +84,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,27 +98,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -145,7 +151,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -162,7 +168,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/foo.d.ts","../../node_modules/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/foo.d.ts","../../node_modules/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -183,27 +189,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -232,7 +252,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1054 + "size": 1150 } @@ -247,7 +267,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -268,27 +288,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -317,23 +351,37 @@ Output:: "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 990 + "size": 1086 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js index 552bb3aec60a7..638725287c7ec 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js @@ -85,7 +85,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,27 +106,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -155,23 +169,37 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 990 + "size": 1086 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js index bf37329f0b213..9c4d918692cca 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js @@ -82,7 +82,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -96,27 +96,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -143,7 +149,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -160,7 +166,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,27 +187,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -230,7 +250,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1037 + "size": 1133 } @@ -245,7 +265,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -266,27 +286,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -315,23 +349,37 @@ Output:: "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1005 + "size": 1101 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index c37f6ea0c9d3e..1fcd999a277fe 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -84,7 +84,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,27 +98,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -145,7 +151,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -162,7 +168,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/foo.d.ts","../../node_modules/@issue/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/foo.d.ts","../../node_modules/@issue/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -183,27 +189,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -232,7 +252,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1083 + "size": 1179 } @@ -247,7 +267,7 @@ Output:: //// [/user/username/projects/myproject/packages/A/lib/test.js] file written with same contents //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -268,27 +288,41 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -317,23 +351,37 @@ Output:: "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1005 + "size": 1101 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js index a79dd3a56213f..59dc31bc55545 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js @@ -85,7 +85,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,27 +106,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -155,23 +169,37 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1005 + "size": 1101 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js index 2bbc88c28331f..13580753d93fa 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js @@ -83,7 +83,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,27 +104,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -153,23 +167,37 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1005 + "size": 1101 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js index ab6acb9bc44ad..1f5b71fc377f2 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js @@ -83,7 +83,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/src/foo.ts","../b/src/bar/foo.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","impliedFormat":1},{"version":"1045484683-export function bar() { }","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,27 +104,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/src/foo.ts": { + "original": { + "version": "4646078106-export function foo() { }", + "impliedFormat": 1 + }, "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" + "signature": "4646078106-export function foo() { }", + "impliedFormat": "commonjs" }, "../b/src/bar/foo.ts": { + "original": { + "version": "1045484683-export function bar() { }", + "impliedFormat": 1 + }, "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" + "signature": "1045484683-export function bar() { }", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -153,23 +167,37 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 990 + "size": 1086 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js index b78a5dab0a2aa..18389de52c64c 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js @@ -160,7 +160,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,19 +173,23 @@ export declare function lastElementOf(arr: T[]): T | undefined; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { "original": { "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 }, "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +219,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1324 + "size": 1360 } //// [/user/username/projects/demo/lib/animals/animal.js] @@ -271,7 +275,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -297,35 +301,51 @@ export declare function createDog(): Dog; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { "original": { "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../core/utilities.d.ts": { + "original": { + "version": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 + }, "version": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { "original": { "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -375,7 +395,7 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2221 + "size": 2335 } @@ -390,7 +410,7 @@ Output:: //// [/user/username/projects/demo/lib/animals/dog.js] file written with same contents //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -416,39 +436,52 @@ Output:: "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { "original": { "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { "original": { "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": 1 }, "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" + "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { "original": { "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -498,17 +531,25 @@ Output:: "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2469 + "size": 2571 } PolledWatches:: /user/username/projects/demo/animals/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/demo/animals/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/demo/core/package.json: *new* + {"pollingInterval":2000} /user/username/projects/demo/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/demo/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js index b56b8e4c12626..faac595ef9ea8 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js @@ -202,7 +202,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","impliedFormat":1},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","impliedFormat":1},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","impliedFormat":1},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","impliedFormat":1}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5]],"referencedMap":[[5,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -228,35 +228,51 @@ export declare function createDog(): Dog; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../animals/animal.ts": { + "original": { + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": 1 + }, "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "impliedFormat": "commonjs" }, "../../animals/index.ts": { "original": { "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": 1 }, "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", - "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" + "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "impliedFormat": "commonjs" }, "../../core/utilities.ts": { + "original": { + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "impliedFormat": 1 + }, "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", - "signature": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" + "signature": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "impliedFormat": "commonjs" }, "../../animals/dog.ts": { "original": { "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": 1 }, "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", - "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" + "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -306,17 +322,25 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2310 + "size": 2424 } PolledWatches:: /user/username/projects/demo/animals/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/demo/animals/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/demo/core/package.json: *new* + {"pollingInterval":2000} /user/username/projects/demo/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/demo/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js index 264104c6d6165..e18f81cdeb0b2 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js @@ -42,6 +42,11 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -50,8 +55,18 @@ File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. File '/user/username/projects/myproject/other.d.ts' exists - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.d.ts'. ======== +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -69,8 +84,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -133,6 +152,24 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. @@ -140,6 +177,14 @@ File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. File '/user/username/projects/myproject/other.d.ts' exists - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.d.ts'. ======== +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:00:30 AM] Found 0 errors. Watching for file changes. @@ -193,6 +238,24 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. @@ -200,6 +263,14 @@ File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. File '/user/username/projects/myproject/other.d.ts' exists - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.d.ts'. ======== +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:00:37 AM] Found 0 errors. Watching for file changes. @@ -259,12 +330,38 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' exists - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.ts'. ======== +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 undefined Source file +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:00:48 AM] Found 0 errors. Watching for file changes. @@ -281,8 +378,12 @@ function foo() { } PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js index ac62cc330659e..62b66207c2fb5 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js @@ -42,6 +42,11 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -50,8 +55,18 @@ File '/user/username/projects/myproject/other.ts' does not exist. File '/user/username/projects/myproject/other.tsx' does not exist. File '/user/username/projects/myproject/other.d.ts' exists - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.d.ts'. ======== +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.d.ts 250 undefined Source file +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -69,8 +84,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -161,6 +180,19 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. [12:00:35 AM] Found 0 errors. Watching for file changes. @@ -220,12 +252,38 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/main.ts"] options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. ======== Resolving module './other' from '/user/username/projects/myproject/main.ts'. ======== Module resolution kind is not specified, using 'Node10'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/other', target file types: TypeScript, Declaration. File '/user/username/projects/myproject/other.ts' exists - use it as a name resolution result. ======== Module name './other' was successfully resolved to '/user/username/projects/myproject/other.ts'. ======== +File '/user/username/projects/myproject/package.json' does not exist. +File '/user/username/projects/package.json' does not exist. +File '/user/username/package.json' does not exist. +File '/user/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 undefined Source file +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. [12:00:46 AM] Found 0 errors. Watching for file changes. @@ -242,8 +300,12 @@ function foo() { } PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js index 887e23b70f5a0..cc4d5ea9af314 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js @@ -37,7 +37,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -51,19 +51,31 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./other.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -101,15 +113,19 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 746 + "size": 824 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -162,7 +178,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,27 +192,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +243,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 866 + "size": 920 } //// [/user/username/projects/myproject/main.js] @@ -250,14 +272,22 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -318,8 +348,12 @@ export const x = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -345,7 +379,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -359,27 +393,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -410,15 +450,19 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 913 + "size": 967 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -467,7 +511,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -481,27 +525,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -526,7 +576,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 882 + "size": 936 } //// [/user/username/projects/myproject/main.js] @@ -541,14 +591,22 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -610,8 +668,12 @@ export const x = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -637,7 +699,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -651,27 +713,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-16105752451-export const x = 10;\n// SomeComment\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-16105752451-export const x = 10;\n// SomeComment\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -696,7 +764,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 898 + "size": 952 } //// [/user/username/projects/myproject/main.js] @@ -712,8 +780,12 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js index 0b7a0c72c60d7..b0f97568cd70e 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js @@ -37,7 +37,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -51,19 +51,31 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./other.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -101,15 +113,19 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 746 + "size": 824 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -169,7 +185,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -183,27 +199,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -228,7 +250,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 866 + "size": 920 } //// [/user/username/projects/myproject/main.js] @@ -257,14 +279,22 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -332,8 +362,12 @@ export const x = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -359,7 +393,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -373,27 +407,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -424,15 +464,19 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 913 + "size": 967 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -488,7 +532,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14918944530-export const x = 10;\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -502,27 +546,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-14918944530-export const x = 10;\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -547,7 +597,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 882 + "size": 936 } //// [/user/username/projects/myproject/main.js] @@ -562,14 +612,22 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -638,8 +696,12 @@ export const x = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -665,7 +727,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-16105752451-export const x = 10;\n// SomeComment\n// SomeComment","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -679,27 +741,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-16105752451-export const x = 10;\n// SomeComment\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-16105752451-export const x = 10;\n// SomeComment\n// SomeComment", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -724,7 +792,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 898 + "size": 952 } //// [/user/username/projects/myproject/main.js] @@ -741,8 +809,12 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js index 21e9c443b7a01..8f43eb345c9f7 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js @@ -43,7 +43,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8089124208-export const x: string = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8089124208-export const x: string = 10;","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -57,19 +57,31 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-8089124208-export const x: string = 10;", + "impliedFormat": 1 + }, "version": "-8089124208-export const x: string = 10;", - "signature": "-8089124208-export const x: string = 10;" + "signature": "-8089124208-export const x: string = 10;", + "impliedFormat": "commonjs" }, "./other.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -120,15 +132,19 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 912 + "size": 990 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -182,8 +198,12 @@ export const x: string = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -214,7 +234,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-5691975201-export const x: string = 10;\n// SomeComment","signature":"-10161843860-export declare const x: string;\n"},"-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5691975201-export const x: string = 10;\n// SomeComment","signature":"-10161843860-export declare const x: string;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -228,23 +248,32 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-5691975201-export const x: string = 10;\n// SomeComment", - "signature": "-10161843860-export declare const x: string;\n" + "signature": "-10161843860-export declare const x: string;\n", + "impliedFormat": 1 }, "version": "-5691975201-export const x: string = 10;\n// SomeComment", - "signature": "-10161843860-export declare const x: string;\n" + "signature": "-10161843860-export declare const x: string;\n", + "impliedFormat": "commonjs" }, "./other.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -295,15 +324,19 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1001 + "size": 1067 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -352,8 +385,12 @@ export const x = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -379,7 +416,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -393,27 +430,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -439,7 +482,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 887 + "size": 941 } //// [/user/username/projects/myproject/main.js] @@ -468,8 +511,12 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js index 17ac85bde4297..05d0836eff5cb 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js @@ -43,7 +43,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8089124208-export const x: string = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8089124208-export const x: string = 10;","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -57,19 +57,31 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-8089124208-export const x: string = 10;", + "impliedFormat": 1 + }, "version": "-8089124208-export const x: string = 10;", - "signature": "-8089124208-export const x: string = 10;" + "signature": "-8089124208-export const x: string = 10;", + "impliedFormat": "commonjs" }, "./other.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -120,15 +132,19 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 912 + "size": 990 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -189,8 +205,12 @@ export const x: string = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -221,7 +241,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-5691975201-export const x: string = 10;\n// SomeComment","signature":"-10161843860-export declare const x: string;\n"},"-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5691975201-export const x: string = 10;\n// SomeComment","signature":"-10161843860-export declare const x: string;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -235,23 +255,32 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-5691975201-export const x: string = 10;\n// SomeComment", - "signature": "-10161843860-export declare const x: string;\n" + "signature": "-10161843860-export declare const x: string;\n", + "impliedFormat": 1 }, "version": "-5691975201-export const x: string = 10;\n// SomeComment", - "signature": "-10161843860-export declare const x: string;\n" + "signature": "-10161843860-export declare const x: string;\n", + "impliedFormat": "commonjs" }, "./other.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -302,15 +331,19 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1001 + "size": 1067 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -366,8 +399,12 @@ export const x = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -393,7 +430,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -407,27 +444,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -453,7 +496,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 887 + "size": 941 } //// [/user/username/projects/myproject/main.js] @@ -482,8 +525,12 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js index 4c033fd599009..fb2d18de435ad 100644 --- a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js +++ b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js @@ -43,7 +43,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8089124208-export const x: string = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8089124208-export const x: string = 10;","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -57,19 +57,31 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { + "original": { + "version": "-8089124208-export const x: string = 10;", + "impliedFormat": 1 + }, "version": "-8089124208-export const x: string = 10;", - "signature": "-8089124208-export const x: string = 10;" + "signature": "-8089124208-export const x: string = 10;", + "impliedFormat": "commonjs" }, "./other.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, "version": "-13729955264-export const y = 10;", - "signature": "-13729955264-export const y = 10;" + "signature": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" } }, "root": [ @@ -120,15 +132,19 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 912 + "size": 990 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -181,8 +197,12 @@ export const x = 10; PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches *deleted*:: /a/lib/lib.d.ts: @@ -207,7 +227,7 @@ Output:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1],[3,1]],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1],[3,1]],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -221,27 +241,33 @@ Output:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./other.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -281,7 +307,7 @@ Output:: "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 928 + "size": 982 } //// [/user/username/projects/myproject/main.d.ts] @@ -296,8 +322,12 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js b/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js index d1565959d24aa..c71f12f71ebc7 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js +++ b/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js @@ -36,8 +36,12 @@ Output:: PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js index 0987a5a5b2d5d..97bc098be50b5 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js +++ b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js @@ -61,8 +61,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* 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 4b682fb3b7c62..10ae1f5210e3f 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 @@ -47,6 +47,8 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -64,8 +66,12 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -140,7 +146,7 @@ declare module "b" { //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"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] { @@ -151,9 +157,30 @@ declare module "b" { "./b.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; }", - "./a.ts": "-10726455937-export const x = 10;", - "./b.ts": "-13729955264-export const y = 10;" + "../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./a.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./b.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, + "version": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -179,7 +206,7 @@ declare module "b" { ] }, "version": "FakeTSVersion", - "size": 838 + "size": 928 } @@ -223,7 +250,7 @@ Change:: Emit all files Input:: //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729955264-export const y = 10;","impliedFormat":1}],"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] { @@ -234,9 +261,30 @@ Input:: "./b.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; }", - "./a.ts": "-10726455937-export const x = 10;", - "./b.ts": "-13729955264-export const y = 10;" + "../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./a.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, + "version": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" + }, + "./b.ts": { + "original": { + "version": "-13729955264-export const y = 10;", + "impliedFormat": 1 + }, + "version": "-13729955264-export const y = 10;", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -258,7 +306,7 @@ Input:: "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 822 + "size": 912 } //// [/user/username/projects/myproject/outFile.js] diff --git a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js index d3b1d798855cc..622e27b6fc24d 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js @@ -46,6 +46,8 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -60,7 +62,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-10726455937-export const x = 10;","-11268290852-export const y: 10 = 20;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./b.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type '20' is not assignable to type '10'."}]]],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-11268290852-export const y: 10 = 20;","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./b.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type '20' is not assignable to type '10'."}]]],"affectedFilesPendingEmit":[2,3],"emitSignatures":[2,3]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -74,19 +76,31 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { + "original": { + "version": "-10726455937-export const x = 10;", + "impliedFormat": 1 + }, "version": "-10726455937-export const x = 10;", - "signature": "-10726455937-export const x = 10;" + "signature": "-10726455937-export const x = 10;", + "impliedFormat": "commonjs" }, "./b.ts": { + "original": { + "version": "-11268290852-export const y: 10 = 20;", + "impliedFormat": 1 + }, "version": "-11268290852-export const y: 10 = 20;", - "signature": "-11268290852-export const y: 10 = 20;" + "signature": "-11268290852-export const y: 10 = 20;", + "impliedFormat": "commonjs" } }, "root": [ @@ -138,15 +152,19 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node ] }, "version": "FakeTSVersion", - "size": 902 + "size": 980 } PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -217,7 +235,7 @@ CreatingProgramWith:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1],[3,1]],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1],[3,1]],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -231,27 +249,33 @@ CreatingProgramWith:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -292,7 +316,7 @@ CreatingProgramWith:: "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 928 + "size": 982 } //// [/user/username/projects/myproject/a.d.ts] @@ -345,7 +369,7 @@ Change:: Emit all files Input:: //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n","impliedFormat":1},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -359,27 +383,33 @@ Input:: "../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./a.ts": { "original": { "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": 1 }, "version": "-10726455937-export const x = 10;", - "signature": "-6821242887-export declare const x = 10;\n" + "signature": "-6821242887-export declare const x = 10;\n", + "impliedFormat": "commonjs" }, "./b.ts": { "original": { "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": 1 }, "version": "-13729955264-export const y = 10;", - "signature": "-7152472870-export declare const y = 10;\n" + "signature": "-7152472870-export declare const y = 10;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -406,7 +436,7 @@ Input:: "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 887 + "size": 941 } //// [/user/username/projects/myproject/a.js] diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js index e0b9a75feccda..2e04e4636d16f 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js @@ -93,7 +93,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,30 +107,36 @@ declare class class2 { "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -151,7 +157,7 @@ declare class class2 { "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 864 + "size": 918 } @@ -381,7 +387,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -396,39 +402,47 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class3.d.ts": { "original": { "version": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469165364-declare class class3 {}", "signature": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -450,7 +464,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 968 + "size": 1040 } @@ -583,7 +597,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -597,30 +611,36 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -639,7 +659,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 860 + "size": 914 } @@ -774,7 +794,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.d.ts","../project1/class3.d.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469237238-declare class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"-3469165364-declare class class3 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -789,39 +809,47 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.d.ts": { "original": { "version": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469237238-declare class class1 {}", "signature": "-3469237238-declare class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class3.d.ts": { "original": { "version": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-3469165364-declare class class3 {}", "signature": "-3469165364-declare class class3 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -843,7 +871,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 968 + "size": 1040 } diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js index df872382e3f42..d5358ec7a80a2 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js @@ -93,7 +93,7 @@ declare class class2 { //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"777933178-class class1 {}","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"777933178-class class1 {}","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[3],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,30 +107,36 @@ declare class class2 { "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.ts": { "original": { "version": "777933178-class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777933178-class class1 {}", "signature": "777933178-class class1 {}", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -151,7 +157,7 @@ declare class class2 { "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 852 + "size": 906 } @@ -246,7 +252,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj //// [/user/username/projects/myproject/projects/project2/class2.js] file written with same contents //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","../project1/class3.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"777933178-class class1 {}","signature":"-2723220098-declare class class1 {\n}\n","affectsGlobalScope":true},{"version":"778005052-class class3 {}","signature":"-2644949312-declare class class3 {\n}\n","affectsGlobalScope":true},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../project1/class1.ts","../project1/class3.ts","./class2.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"777933178-class class1 {}","signature":"-2723220098-declare class class1 {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"778005052-class class3 {}","signature":"-2644949312-declare class class3 {\n}\n","affectsGlobalScope":true,"impliedFormat":1},{"version":"777969115-class class2 {}","signature":"-2684084705-declare class class2 {\n}\n","affectsGlobalScope":true,"impliedFormat":1}],"root":[4],"options":{"composite":true,"module":0},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./class2.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -261,41 +267,49 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class1.ts": { "original": { "version": "777933178-class class1 {}", "signature": "-2723220098-declare class class1 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777933178-class class1 {}", "signature": "-2723220098-declare class class1 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../project1/class3.ts": { "original": { "version": "778005052-class class3 {}", "signature": "-2644949312-declare class class3 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "778005052-class class3 {}", "signature": "-2644949312-declare class class3 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./class2.ts": { "original": { "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "777969115-class class2 {}", "signature": "-2684084705-declare class class2 {\n}\n", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -317,7 +331,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj "latestChangedDtsFile": "./class2.d.ts" }, "version": "FakeTSVersion", - "size": 1052 + "size": 1124 } diff --git a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js index 8ff79cb8b2c49..e371ed10f39cd 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js @@ -78,6 +78,9 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects 1 undefined Failed Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/project/lib/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/project/lib/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Triggered with /user/username/projects/project/app.js :: WatchInfo: /user/username/projects 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/project/app.js :: WatchInfo: /user/username/projects 1 undefined Failed Lookup Locations [12:00:34 AM] Found 0 errors. Watching for file changes. @@ -92,6 +95,14 @@ console.log(lib_1.one); +PolledWatches:: +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} diff --git a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js index e2da1988d9ae6..964bd254f4a2a 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js @@ -76,6 +76,9 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects 1 undefined Failed Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/project/lib/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/project/lib/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Triggered with /user/username/projects/project/app.js :: WatchInfo: /user/username/projects 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/project/app.js :: WatchInfo: /user/username/projects 1 undefined Failed Lookup Locations [12:00:34 AM] Found 0 errors. Watching for file changes. @@ -90,6 +93,14 @@ console.log(lib_1.one); +PolledWatches:: +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-false.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-false.js index e8cfa9431277a..cc579cfd67f87 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-false.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-false.js @@ -36,6 +36,8 @@ CreatingProgramWith:: options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -55,8 +57,12 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-true.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-true.js index 0d41c11b03e81..23d4ca37628f6 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-true.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-true.js @@ -36,6 +36,8 @@ CreatingProgramWith:: options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots @@ -55,8 +57,12 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js index 0c438ca41f80b..5f2528e4c0950 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js @@ -46,6 +46,8 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 { DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"watchFile":4} Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"watchFile":4} Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"watchFile":4} Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"watchFile":4} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"watchFile":4} File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":4} Type roots @@ -67,8 +69,12 @@ var foo_1 = require("./foo"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -152,8 +158,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -275,8 +285,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js index 7697401927942..6c1907930650c 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js @@ -44,6 +44,8 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo.ts 250 {"watchFile":4} Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":4} Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"watchFile":4} Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"watchFile":4} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"watchFile":4} File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":4} Type roots @@ -68,8 +70,12 @@ var foo_1 = require("./foo"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -125,8 +131,12 @@ sysLog:: /user/username/projects/myproject/foo.ts:: Changing watcher to PresentF PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -224,8 +234,12 @@ sysLog:: /user/username/projects/myproject/foo.ts:: Changing watcher to PresentF PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js index ecffc0b329cdb..4654b3a99f6d8 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js @@ -46,6 +46,8 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 { DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"watchFile":4} Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"watchFile":4} Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"watchFile":4} Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"watchFile":4} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"watchFile":4} File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":4} Type roots @@ -67,8 +69,12 @@ var foo_1 = require("./foo"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -140,8 +146,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -251,8 +261,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js index 60ff565ce9077..03d448a444167 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js @@ -44,6 +44,8 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo.ts 250 {"watchFile":4} Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":4} Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"watchFile":4} Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"watchFile":4} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"watchFile":4} File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":4} Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":4} Type roots @@ -68,8 +70,12 @@ var foo_1 = require("./foo"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js index a33b52e5c81db..dce222acd0284 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js @@ -40,6 +40,12 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/user/projects/myproject/src/file.ts"] options: {"extendedDiagnostics":true,"traceResolution":true,"watch":true,"configFilePath":"/home/user/projects/myproject/tsconfig.json"} +File '/home/user/projects/myproject/src/package.json' does not exist. +File '/home/user/projects/myproject/package.json' does not exist. +File '/home/user/projects/package.json' does not exist. +File '/home/user/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. FileWatcher:: Added:: WatchInfo: /home/user/projects/myproject/src/file.ts 250 undefined Source file ======== Resolving module 'a' from '/home/user/projects/myproject/src/file.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -55,12 +61,27 @@ File '/home/user/projects/myproject/node_modules/a/index.tsx' does not exist. File '/home/user/projects/myproject/node_modules/a/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/user/projects/myproject/node_modules/a/index.d.ts', result '/home/user/projects/myproject/node_modules/reala/index.d.ts'. ======== Module name 'a' was successfully resolved to '/home/user/projects/myproject/node_modules/reala/index.d.ts'. ======== +File '/home/user/projects/myproject/node_modules/reala/package.json' does not exist. +File '/home/user/projects/myproject/node_modules/package.json' does not exist. +File '/home/user/projects/myproject/package.json' does not exist according to earlier cached lookups. +File '/home/user/projects/package.json' does not exist according to earlier cached lookups. +File '/home/user/package.json' does not exist according to earlier cached lookups. +File '/home/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/user/projects/myproject/node_modules/reala/index.d.ts 250 undefined Source file +File '/a/lib/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject/node_modules 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /home/user/projects/myproject/node_modules/reala/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/user/projects/myproject/node_modules/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/user/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/user/projects/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /home/user/projects/myproject/src/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/node_modules/@types 1 undefined Type roots @@ -80,8 +101,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /home/user/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/home/user/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/home/user/projects/myproject/node_modules/reala/package.json: *new* + {"pollingInterval":2000} +/home/user/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/home/user/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /home/user/projects/node_modules/@types: *new* {"pollingInterval":500} +/home/user/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js index 5d35ce875c969..e700a3fe5c05a 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js @@ -52,8 +52,14 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -141,10 +147,16 @@ Output:: PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/file2.ts: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -230,8 +242,14 @@ exports.x = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/src/file2.ts: diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js index 0d0e14d8845c4..8b22649cc36c7 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js @@ -50,8 +50,18 @@ export {}; PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/file2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -162,8 +172,18 @@ export declare const y = 10; PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/node_modules/file2/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js index c8269445cb9d7..1dff9fd0e0a99 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js @@ -41,8 +41,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/file2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -111,8 +121,18 @@ Input:: PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/node_modules/file2/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -164,10 +184,22 @@ Output:: PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/file2/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -317,10 +349,16 @@ After running Timeout callback:: count: 2 PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -383,8 +421,18 @@ Output:: PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/node_modules/file2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/node_modules: diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js index d625c9b75f8bc..6e80a79fbcd4b 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js @@ -58,6 +58,11 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/ FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} File location affecting resolution ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Type roots @@ -78,8 +83,18 @@ var bar_1 = require("bar"); PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js index 54637e9d9187f..be1a64ad96af2 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js @@ -59,6 +59,11 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/ FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Type roots @@ -80,8 +85,18 @@ var bar_1 = require("bar"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js index c229ffbfc89fc..be066efb86f37 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js @@ -61,8 +61,18 @@ var bar_1 = require("bar"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js index 62a9fc61e163b..88a2a886c5a6f 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js @@ -59,8 +59,18 @@ var bar_1 = require("bar"); PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js index a3a43c4713f9f..fd9490e66649f 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js @@ -59,6 +59,11 @@ ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modul FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Failed Lookup Locations +ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} File location affecting resolution +ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} File location affecting resolution DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Type roots @@ -82,8 +87,14 @@ var bar_1 = require("bar"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js index 63817e9fd65cc..b5494ac9c2612 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js @@ -61,8 +61,14 @@ var bar_1 = require("bar"); PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js index 9c5195aecdb51..e069462a9fd41 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js @@ -29,6 +29,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Search path: /node_modules/@angular/forms Info seq [hh:mm:ss:mss] For info: /node_modules/@angular/forms/forms.d.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -50,6 +51,10 @@ PolledWatches:: /node_modules/@angular/forms/node_modules/@types: *new* {"pollingInterval":500} +FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} + Projects:: /dev/null/inferredProject1* (Inferred) *new* projectStateVersion: 1 @@ -199,7 +204,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/node_modules/@angular/forms/package.json: *new* +/node_modules/@angular/forms/package.json: {} Projects:: diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Closes-AutoImportProviderProject-when-host-project-closes.js b/tests/baselines/reference/tsserver/autoImportProvider/Closes-AutoImportProviderProject-when-host-project-closes.js index 96b2d8b3bf509..cd1d89cd573fe 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Closes-AutoImportProviderProject-when-host-project-closes.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Closes-AutoImportProviderProject-when-host-project-closes.js @@ -68,6 +68,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -209,6 +210,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: *new* {} /tsconfig.json: *new* @@ -275,6 +278,8 @@ PolledWatches:: FsWatches:: /index.ts: *new* {} +/node_modules/@angular/forms/package.json: + {} /package.json: {} /tsconfig.json: @@ -336,6 +341,7 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -364,6 +370,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: 1 undefined Conf Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -387,6 +394,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: + {} /package.json: {} diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-close-when-root-files-are-redirects-that-dont-actually-exist.js b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-close-when-root-files-are-redirects-that-dont-actually-exist.js index 65167f2f9f413..6d1720c3fd351 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-close-when-root-files-are-redirects-that-dont-actually-exist.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-close-when-root-files-are-redirects-that-dont-actually-exist.js @@ -90,6 +90,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/a/node_modules/b/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -233,6 +234,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/packages/a/node_modules/b/package.json: *new* + {} /packages/a/node_modules/b/tsconfig.json: *new* {} /packages/a/package.json: *new* diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-auto-import-providers-upon-opening-projects-for-find-all-references.js b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-auto-import-providers-upon-opening-projects-for-find-all-references.js index 6d1fb74fc117b..e88d63e2ab275 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-auto-import-providers-upon-opening-projects-for-find-all-references.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-auto-import-providers-upon-opening-projects-for-find-all-references.js @@ -84,6 +84,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -235,6 +236,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: *new* {} /packages/b/package.json: *new* @@ -608,6 +611,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: + {} /package.json: {} /packages/a/index.ts: *new* diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-schedule-ensureProjectForOpenFiles-on-AutoImportProviderProject-creation.js b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-schedule-ensureProjectForOpenFiles-on-AutoImportProviderProject-creation.js index 4e65406b1207f..99b2a731bb5ec 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-schedule-ensureProjectForOpenFiles-on-AutoImportProviderProject-creation.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-schedule-ensureProjectForOpenFiles-on-AutoImportProviderProject-creation.js @@ -272,6 +272,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -289,6 +290,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: {} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Recovers-from-an-unparseable-package_json.js b/tests/baselines/reference/tsserver/autoImportProvider/Recovers-from-an-unparseable-package_json.js index e2ad22e98adba..e87b990158850 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Recovers-from-an-unparseable-package_json.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Recovers-from-an-unparseable-package_json.js @@ -224,6 +224,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -241,6 +242,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: {} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-automatic-changes-in-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-automatic-changes-in-node_modules.js index d1074d6373e1d..43145afbe94d4 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-automatic-changes-in-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-automatic-changes-in-node_modules.js @@ -74,6 +74,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 2 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -218,6 +219,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: *new* {} /tsconfig.json: *new* @@ -317,6 +320,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 2 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -332,6 +336,26 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- After getAutoImportProvider +PolledWatches:: +/a/lib/lib.d.ts: + {"pollingInterval":500} + +FsWatches:: +/package.json: + {} +/tsconfig.json: + {} + +FsWatches *deleted*:: +/node_modules/@angular/forms/package.json: + {} + +FsWatchesRecursive:: +/: + {} +/node_modules: + {} + Projects:: /dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* projectStateVersion: 2 diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js index 090a30c603cb8..ee858812198eb 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js @@ -74,6 +74,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 2 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -218,6 +219,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: *new* {} /tsconfig.json: *new* @@ -266,6 +269,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Search path: /node_modules/@angular/forms Info seq [hh:mm:ss:mss] For info: /node_modules/@angular/forms/forms.d.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -288,6 +292,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: + {} /package.json: {} /tsconfig.json: @@ -379,6 +385,8 @@ PolledWatches:: FsWatches:: /a/data/package.json: *new* {} +/node_modules/@angular/forms/package.json: + {} /package.json: {} /tsconfig.json: @@ -538,7 +546,7 @@ PolledWatches:: FsWatches:: /a/data/package.json: {} -/node_modules/@angular/forms/package.json: *new* +/node_modules/@angular/forms/package.json: {} /package.json: {} diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-package_json-changes.js b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-package_json-changes.js index b2466a810c339..5d244fd8c1ffe 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-package_json-changes.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-package_json-changes.js @@ -224,6 +224,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -241,6 +242,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: {} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Reuses-autoImportProvider-when-program-structure-is-unchanged.js b/tests/baselines/reference/tsserver/autoImportProvider/Reuses-autoImportProvider-when-program-structure-is-unchanged.js index d83ca3496e1b0..b135387857e2e 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Reuses-autoImportProvider-when-program-structure-is-unchanged.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Reuses-autoImportProvider-when-program-structure-is-unchanged.js @@ -68,6 +68,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -209,6 +210,8 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} /package.json: *new* {} /tsconfig.json: *new* diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js b/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js index 248d832c2ce10..537cfd03036a7 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js @@ -89,6 +89,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 unde Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/node/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/memfs/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -265,6 +266,8 @@ After request PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} +/node_modules/memfs/lib/package.json: *new* + {"pollingInterval":2000} FsWatches:: /node_modules/@types/node/package.json: *new* diff --git a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js index ebd5fbf154a56..908cfb28e7b1d 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js @@ -26,6 +26,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Search path: /node_modules/@angular/forms Info seq [hh:mm:ss:mss] For info: /node_modules/@angular/forms/forms.d.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -47,6 +48,10 @@ PolledWatches:: /node_modules/@angular/forms/node_modules/@types: *new* {"pollingInterval":500} +FsWatches:: +/node_modules/@angular/forms/package.json: *new* + {} + Projects:: /dev/null/inferredProject1* (Inferred) *new* projectStateVersion: 1 @@ -200,7 +205,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/node_modules/@angular/forms/package.json: *new* +/node_modules/@angular/forms/package.json: {} Projects:: diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js index 593ad119a072c..43f95a155bd4d 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js @@ -76,6 +76,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution 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] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -116,10 +118,14 @@ After request PolledWatches:: /user/users/projects/myproject/jsconfig.json: *new* {"pollingInterval":2000} +/user/users/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/users/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/users/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/users/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -177,6 +183,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) Info seq [hh:mm:ss:mss] Files (2) @@ -238,12 +246,16 @@ After request PolledWatches:: /user/users/projects/myproject/jsconfig.json: {"pollingInterval":2000} +/user/users/projects/myproject/package.json: + {"pollingInterval":2000} /user/users/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/users/projects/node_modules: *new* {"pollingInterval":500} /user/users/projects/node_modules/@types: {"pollingInterval":500} +/user/users/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js index 2660bdc604b30..045f97e91a6f0 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js @@ -88,6 +88,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 un Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -134,20 +138,28 @@ After request PolledWatches:: /user/users/projects/myproject/folder/node_modules: *new* {"pollingInterval":500} +/user/users/projects/myproject/folder/package.json: *new* + {"pollingInterval":2000} /user/users/projects/myproject/jsconfig.json: *new* {"pollingInterval":2000} +/user/users/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/users/projects/myproject/some/jsconfig.json: *new* {"pollingInterval":2000} /user/users/projects/myproject/some/node_modules: *new* {"pollingInterval":500} /user/users/projects/myproject/some/node_modules/@types: *new* {"pollingInterval":500} +/user/users/projects/myproject/some/package.json: *new* + {"pollingInterval":2000} /user/users/projects/myproject/some/tsconfig.json: *new* {"pollingInterval":2000} /user/users/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/users/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/users/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -215,6 +227,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) Info seq [hh:mm:ss:mss] Files (4) @@ -265,14 +281,20 @@ After request PolledWatches:: /user/users/projects/myproject/folder/node_modules: {"pollingInterval":500} +/user/users/projects/myproject/folder/package.json: + {"pollingInterval":2000} /user/users/projects/myproject/jsconfig.json: {"pollingInterval":2000} +/user/users/projects/myproject/package.json: + {"pollingInterval":2000} /user/users/projects/myproject/some/jsconfig.json: {"pollingInterval":2000} /user/users/projects/myproject/some/node_modules: {"pollingInterval":500} /user/users/projects/myproject/some/node_modules/@types: {"pollingInterval":500} +/user/users/projects/myproject/some/package.json: + {"pollingInterval":2000} /user/users/projects/myproject/some/tsconfig.json: {"pollingInterval":2000} /user/users/projects/myproject/tsconfig.json: @@ -281,6 +303,8 @@ PolledWatches:: {"pollingInterval":500} /user/users/projects/node_modules/@types: {"pollingInterval":500} +/user/users/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js index 345f33b0a5436..19b8cf0a20308 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js @@ -71,6 +71,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/foo/boo/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/foo/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/foo/boo/moo/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/@types 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/@types 1 undefined Project: /users/username/projects/proj/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/proj/tsconfig.json WatchType: Type roots @@ -185,10 +190,20 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/moo/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/foo/package.json: *new* + {"pollingInterval":2000} /users/username/projects/proj/node_modules: *new* {"pollingInterval":500} /users/username/projects/proj/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/proj/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -250,8 +265,18 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/moo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/package.json: + {"pollingInterval":2000} /users/username/projects/proj/node_modules/@types: {"pollingInterval":500} +/users/username/projects/proj/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/proj/node_modules: @@ -297,6 +322,8 @@ Info seq [hh:mm:ss:mss] Running: /users/username/projects/proj/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/proj/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/debug/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/proj/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -353,8 +380,22 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/moo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/package.json: + {"pollingInterval":2000} /users/username/projects/proj/node_modules/@types: {"pollingInterval":500} +/users/username/projects/proj/node_modules/debug/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/node_modules: diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js index 15c0d810338cf..692e7ad20c8ea 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js @@ -71,6 +71,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/foo/boo/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/foo/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/foo/boo/moo/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/@types 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/@types 1 undefined Project: /users/username/projects/proj/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/proj/tsconfig.json WatchType: Type roots @@ -185,10 +190,20 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/moo/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/foo/package.json: *new* + {"pollingInterval":2000} /users/username/projects/proj/node_modules: *new* {"pollingInterval":500} /users/username/projects/proj/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/proj/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -250,8 +265,18 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/moo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/package.json: + {"pollingInterval":2000} /users/username/projects/proj/node_modules/@types: {"pollingInterval":500} +/users/username/projects/proj/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/proj/node_modules: @@ -297,6 +322,8 @@ Info seq [hh:mm:ss:mss] Running: /users/username/projects/proj/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/proj/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/debug/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/proj/node_modules/package.json 2000 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/proj/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/proj/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -353,8 +380,22 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/moo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/boo/package.json: + {"pollingInterval":2000} +/users/username/projects/proj/foo/package.json: + {"pollingInterval":2000} /users/username/projects/proj/node_modules/@types: {"pollingInterval":500} +/users/username/projects/proj/node_modules/debug/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/proj/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/node_modules: diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js index 903a86cb3ad53..c3ee6f08ccf70 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js @@ -48,6 +48,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -80,12 +82,16 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/jsconfig.json: *new* {"pollingInterval":2000} /users/username/projects/project/node_modules: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -150,6 +156,26 @@ Info seq [hh:mm:ss:mss] fileExists:: [ "key": "/jsconfig.json", "count": 1 }, + { + "key": "/users/username/projects/project/package.json", + "count": 3 + }, + { + "key": "/users/username/projects/package.json", + "count": 3 + }, + { + "key": "/users/username/package.json", + "count": 2 + }, + { + "key": "/users/package.json", + "count": 2 + }, + { + "key": "/package.json", + "count": 2 + }, { "key": "/users/username/projects/project/bar.ts", "count": 1 @@ -249,48 +275,28 @@ Info seq [hh:mm:ss:mss] fileExists:: [ { "key": "/bar.jsx", "count": 1 - }, - { - "key": "/users/username/projects/project/package.json", - "count": 1 - }, - { - "key": "/users/username/projects/package.json", - "count": 1 - }, - { - "key": "/users/username/package.json", - "count": 1 - }, - { - "key": "/users/package.json", - "count": 1 - }, - { - "key": "/package.json", - "count": 1 } ] Info seq [hh:mm:ss:mss] directoryExists:: [ { "key": "/users/username/projects/project", - "count": 3 + "count": 4 }, { "key": "/users/username/projects", - "count": 3 + "count": 4 }, { "key": "/users/username", - "count": 2 + "count": 3 }, { "key": "/users", - "count": 2 + "count": 3 }, { "key": "/", - "count": 2 + "count": 3 }, { "key": "/users/username/projects/project/node_modules", diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js index 4e08ec759eafc..38e4effcb5c7a 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js @@ -115,6 +115,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/ro Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules/@types 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Type roots @@ -231,6 +232,8 @@ PolledWatches:: FsWatches:: /a/lib/lib.d.ts: *new* {} +/user/username/rootfolder/otherfolder/a/b/package.json: *new* + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: *new* {} @@ -711,6 +714,8 @@ PolledWatches *deleted*:: FsWatches:: /a/lib/lib.d.ts: {} +/user/username/rootfolder/otherfolder/a/b/package.json: + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: {} @@ -1221,6 +1226,8 @@ PolledWatches *deleted*:: FsWatches:: /a/lib/lib.d.ts: {} +/user/username/rootfolder/otherfolder/a/b/package.json: + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: {} @@ -2102,6 +2109,8 @@ FsWatches:: {} /user/username/rootfolder/otherfolder/a/b/node_modules/lodash/package.json: *new* {} +/user/username/rootfolder/otherfolder/a/b/package.json: + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: {} diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js index e62f5c446c0b3..31aee30c145b9 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js @@ -115,6 +115,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/ro Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/@types 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules/@types 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/tsconfig.json WatchType: Type roots @@ -231,6 +232,8 @@ PolledWatches:: FsWatches:: /a/lib/lib.d.ts: *new* {} +/user/username/rootfolder/otherfolder/a/b/package.json: *new* + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: *new* {} @@ -714,6 +717,8 @@ PolledWatches *deleted*:: FsWatches:: /a/lib/lib.d.ts: {} +/user/username/rootfolder/otherfolder/a/b/package.json: + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: {} @@ -1312,6 +1317,8 @@ PolledWatches *deleted*:: FsWatches:: /a/lib/lib.d.ts: {} +/user/username/rootfolder/otherfolder/a/b/package.json: + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: {} @@ -2260,6 +2267,8 @@ FsWatches:: {} /user/username/rootfolder/otherfolder/a/b/node_modules/lodash/package.json: *new* {} +/user/username/rootfolder/otherfolder/a/b/package.json: + {} /user/username/rootfolder/otherfolder/a/b/tsconfig.json: {} diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js index 4baf69dd57650..85182bfcd14f1 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js @@ -126,6 +126,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/node_modules 1 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/node_modules 1 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/redux/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/utils/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /Users/someuser/work/applications/frontend/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/Users/someuser/work/applications/frontend/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -288,8 +295,22 @@ After request PolledWatches:: /Users/someuser/work/applications/frontend/node_modules: *new* {"pollingInterval":500} +/Users/someuser/work/applications/frontend/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/redux/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/utils/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/package.json: *new* + {"pollingInterval":2000} /Users/someuser/work/applications/frontend/types: *new* {"pollingInterval":500} +/Users/someuser/work/applications/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/package.json: *new* + {"pollingInterval":2000} FsWatches:: /Users/someuser/work/applications/frontend/src/app/redux/configureStore.ts: *new* @@ -399,8 +420,22 @@ After running Timeout callback:: count: 0 PolledWatches:: /Users/someuser/work/applications/frontend/node_modules: {"pollingInterval":500} +/Users/someuser/work/applications/frontend/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/redux/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/utils/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/package.json: + {"pollingInterval":2000} /Users/someuser/work/applications/frontend/types: {"pollingInterval":500} +/Users/someuser/work/applications/package.json: + {"pollingInterval":2000} +/Users/someuser/work/package.json: + {"pollingInterval":2000} FsWatches:: /Users/someuser/work/applications/frontend/src/app/redux/configureStore.ts: @@ -492,8 +527,22 @@ After request PolledWatches:: /Users/someuser/work/applications/frontend/node_modules: {"pollingInterval":500} +/Users/someuser/work/applications/frontend/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/redux/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/utils/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/package.json: + {"pollingInterval":2000} /Users/someuser/work/applications/frontend/types: {"pollingInterval":500} +/Users/someuser/work/applications/package.json: + {"pollingInterval":2000} +/Users/someuser/work/package.json: + {"pollingInterval":2000} FsWatches:: /Users/someuser/work/applications/frontend/src/app/redux/configureStore.ts: diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js index 64ecd1d306045..c1d5232f94052 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js @@ -126,6 +126,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/node_modules 1 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/node_modules 1 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/redux/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/utils/package.json 2000 undefined Project: /Users/someuser/work/applications/frontend/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /Users/someuser/work/applications/frontend/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/Users/someuser/work/applications/frontend/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -288,8 +295,22 @@ After request PolledWatches:: /Users/someuser/work/applications/frontend/node_modules: *new* {"pollingInterval":500} +/Users/someuser/work/applications/frontend/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/redux/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/utils/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/package.json: *new* + {"pollingInterval":2000} /Users/someuser/work/applications/frontend/types: *new* {"pollingInterval":500} +/Users/someuser/work/applications/package.json: *new* + {"pollingInterval":2000} +/Users/someuser/work/package.json: *new* + {"pollingInterval":2000} FsWatches:: /Users/someuser/work/applications/frontend/src/app/redux/configureStore.ts: *new* @@ -399,8 +420,22 @@ After running Timeout callback:: count: 0 PolledWatches:: /Users/someuser/work/applications/frontend/node_modules: {"pollingInterval":500} +/Users/someuser/work/applications/frontend/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/redux/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/utils/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/package.json: + {"pollingInterval":2000} /Users/someuser/work/applications/frontend/types: {"pollingInterval":500} +/Users/someuser/work/applications/package.json: + {"pollingInterval":2000} +/Users/someuser/work/package.json: + {"pollingInterval":2000} FsWatches:: /Users/someuser/work/applications/frontend/src/app/redux/configureStore.ts: @@ -492,8 +527,22 @@ After request PolledWatches:: /Users/someuser/work/applications/frontend/node_modules: {"pollingInterval":500} +/Users/someuser/work/applications/frontend/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/redux/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/app/utils/package.json: + {"pollingInterval":2000} +/Users/someuser/work/applications/frontend/src/package.json: + {"pollingInterval":2000} /Users/someuser/work/applications/frontend/types: {"pollingInterval":500} +/Users/someuser/work/applications/package.json: + {"pollingInterval":2000} +/Users/someuser/work/package.json: + {"pollingInterval":2000} FsWatches:: /Users/someuser/work/applications/frontend/src/app/redux/configureStore.ts: diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js index 3c2a424e85a7e..a17f0ec9fc257 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js @@ -87,6 +87,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/models/vessel.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/utils/db.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/utils/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/models/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/controllers/vessels/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/controllers/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es6.d.ts 500 undefined Project: /a/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) @@ -250,6 +254,14 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/a/b/controllers/package.json: *new* + {"pollingInterval":2000} +/a/b/controllers/vessels/package.json: *new* + {"pollingInterval":2000} +/a/b/models/package.json: *new* + {"pollingInterval":2000} +/a/b/utils/package.json: *new* + {"pollingInterval":2000} /a/lib/lib.es6.d.ts: *new* {"pollingInterval":500} @@ -350,6 +362,14 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/a/b/controllers/package.json: + {"pollingInterval":2000} +/a/b/controllers/vessels/package.json: + {"pollingInterval":2000} +/a/b/models/package.json: + {"pollingInterval":2000} +/a/b/utils/package.json: + {"pollingInterval":2000} /a/lib/lib.es6.d.ts: {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js index e1c75e9d7b79d..4781a0387c117 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js @@ -84,6 +84,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/client/folder1/module1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/client/folder1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/client/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/folder2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -183,10 +188,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/client/folder1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/client/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/folder2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -298,10 +313,20 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/client/folder1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/client/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/folder2/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js index 0f5604b49b08d..cf4214f918e64 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js @@ -60,6 +60,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/fo Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/node_modules 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/node_modules 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/folder/myproject/package.json 2000 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/folder/package.json 2000 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules/@types 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules/@types 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/node_modules/@types 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Type roots @@ -156,10 +158,14 @@ PolledWatches:: {"pollingInterval":500} /user/username/folder/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/folder/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/folder/node_modules: *new* {"pollingInterval":500} /user/username/folder/node_modules/@types: *new* {"pollingInterval":500} +/user/username/folder/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -221,10 +227,14 @@ export {} PolledWatches:: +/user/username/folder/myproject/package.json: + {"pollingInterval":2000} /user/username/folder/node_modules: {"pollingInterval":500} /user/username/folder/node_modules/@types: {"pollingInterval":500} +/user/username/folder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/folder/myproject/node_modules: @@ -262,6 +272,9 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/folder/myproject/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules/@types/debug/package.json 2000 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules/@types/package.json 2000 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/folder/myproject/node_modules/package.json 2000 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/folder/node_modules 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/folder/node_modules 1 undefined Project: /user/username/folder/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/folder/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -284,8 +297,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- After running Timeout callback:: count: 1 PolledWatches:: +/user/username/folder/myproject/node_modules/@types/debug/package.json: *new* + {"pollingInterval":2000} +/user/username/folder/myproject/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/user/username/folder/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/folder/myproject/package.json: + {"pollingInterval":2000} /user/username/folder/node_modules/@types: {"pollingInterval":500} +/user/username/folder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/folder/node_modules: diff --git a/tests/baselines/reference/tsserver/codeFix/install-package-when-serialized.js b/tests/baselines/reference/tsserver/codeFix/install-package-when-serialized.js index 53f8b10fc07b2..43eadf0e89a35 100644 --- a/tests/baselines/reference/tsserver/codeFix/install-package-when-serialized.js +++ b/tests/baselines/reference/tsserver/codeFix/install-package-when-serialized.js @@ -68,6 +68,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/src/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots @@ -164,8 +167,14 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/project/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/codeFix/install-package.js b/tests/baselines/reference/tsserver/codeFix/install-package.js index a26de2d7ec39c..6a7d291cfcaba 100644 --- a/tests/baselines/reference/tsserver/codeFix/install-package.js +++ b/tests/baselines/reference/tsserver/codeFix/install-package.js @@ -68,6 +68,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/src/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots @@ -164,8 +167,14 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/project/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js index e6ad735e70edf..806e8fb9401cd 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js @@ -83,6 +83,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/module.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -188,8 +190,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -266,8 +272,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js index fcbc25a481894..97eb002041cac 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js @@ -83,6 +83,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/module.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -188,8 +190,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -266,8 +272,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js index d6f7d0a48f8b7..c88e5b7530c01 100644 --- a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js +++ b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js @@ -121,6 +121,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/typescript/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/myproject/node_modules/react-router-dom/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/typescript/node_modules/@types/react-router-dom/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -162,6 +164,8 @@ e:/myproject/src/node_modules: *new* {"pollingInterval":500} e:/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +e:/myproject/src/package.json: *new* + {"pollingInterval":2000} e:/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} @@ -178,6 +182,8 @@ e:/myproject/node_modules/@types/react/package.json: *new* {} e:/myproject/node_modules/react-router-dom/package.json: *new* {} +e:/myproject/package.json: *new* + {} FsWatchesRecursive:: c:/typescript/node_modules: *new* @@ -364,6 +370,8 @@ e:/myproject/src/node_modules: {"pollingInterval":500} e:/myproject/src/node_modules/@types: {"pollingInterval":500} +e:/myproject/src/package.json: + {"pollingInterval":2000} e:/myproject/src/tsconfig.json: {"pollingInterval":2000} @@ -380,7 +388,7 @@ e:/myproject/node_modules/@types/react/package.json: {} e:/myproject/node_modules/react-router-dom/package.json: {} -e:/myproject/package.json: *new* +e:/myproject/package.json: {} FsWatchesRecursive:: diff --git a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js index 8871215cb37d6..149b4d3130d21 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js +++ b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js @@ -68,6 +68,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projec 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 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -167,8 +169,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -285,8 +291,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -359,8 +369,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index 9dde731c34959..285ff82ced3dd 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -70,6 +70,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -167,8 +170,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -239,6 +248,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -284,20 +297,28 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index a2621e030789f..ae9d4ec0537e0 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -67,6 +67,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -164,8 +167,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -231,6 +240,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -265,6 +275,32 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/src/bar.ts: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Projects:: /user/username/projects/myproject/tsconfig.json (Configured) *changed* projectStateVersion: 2 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index a336169d433ff..38cbce728d875 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -70,6 +70,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -167,8 +170,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -239,6 +248,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -284,20 +297,28 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index 71909daa59569..aed4d6ce1487f 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -67,6 +67,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -164,8 +167,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -231,6 +240,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -265,6 +275,32 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/src/bar.ts: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Projects:: /user/username/projects/myproject/tsconfig.json (Configured) *changed* projectStateVersion: 2 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index 9bd71e1654cda..2b913e6e6fbcc 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -70,6 +70,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -167,8 +170,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -233,6 +242,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -278,20 +291,28 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index 4f8792a7733c5..417527d887f1a 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -67,6 +67,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -164,8 +167,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -230,6 +239,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -275,20 +288,28 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -387,6 +408,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -421,12 +443,20 @@ After running Timeout callback:: count: 2 PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/jsconfig.json: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index 6ff64b7971625..1958e854e4b6d 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -70,6 +70,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -167,8 +170,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -233,6 +242,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -278,20 +291,28 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index 2f4eca17340c2..3c91fb972a4ae 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -67,6 +67,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -164,8 +167,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -230,6 +239,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -275,20 +288,28 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -446,6 +467,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -480,12 +502,20 @@ After running Timeout callback:: count: 2 PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/sub/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/sub/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/jsconfig.json: diff --git a/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js b/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js index 9ce92403b3fa2..3664514c90a8a 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js +++ b/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js @@ -74,6 +74,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/ro Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/src/node_modules 1 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/node_modules/module1/package.json 2000 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/node_modules/package.json 2000 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/package.json 2000 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/package.json 2000 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/package.json 2000 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/src/package.json 2000 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/src/node_modules/@types 1 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/src/node_modules/@types 1 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/a/b/node_modules/@types 1 undefined Project: /user/username/rootfolder/a/b/src/tsconfig.json WatchType: Type roots @@ -178,14 +184,26 @@ After request PolledWatches:: /user/username/rootfolder/a/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/rootfolder/a/b/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/a/b/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/a/b/src/node_modules: *new* {"pollingInterval":500} /user/username/rootfolder/a/b/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/rootfolder/a/b/src/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/rootfolder/a/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/node_modules/@types: *new* {"pollingInterval":500} +/user/username/rootfolder/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js b/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js index c4fb05cedfea4..79d60107ec831 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js @@ -29,6 +29,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -68,22 +72,30 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/a/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/a/b/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/a/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/a/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -112,6 +124,10 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/a/c/f3.ts : Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject2* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -157,28 +173,38 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/a/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/a/b/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/a/c/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/a/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/a/c/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/a/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/a/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} Projects:: /dev/null/inferredProject1* (Inferred) @@ -231,26 +257,36 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/a/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/a/b/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/a/c/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/a/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/a/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/a/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/a/c/tsconfig.json: @@ -300,6 +336,11 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/a/c/tsconfig. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/f2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/c/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/a/c/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/package.json 2000 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/c/tsconfig.json WatchType: Type roots @@ -458,6 +499,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -467,6 +512,10 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/c/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject2* WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -513,14 +562,24 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/a/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/a/b/jsconfig.json: diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js index e20885fa013e1..56a31705d9754 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js @@ -131,6 +131,8 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/node_modules/@types/typings/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -168,6 +170,10 @@ After request PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} +/a/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/node_modules/@types/typings/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/tsconfig.json: *new* diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js index 6360f9cafaabd..75f71cbb0c2e4 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js @@ -57,6 +57,7 @@ Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /a/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) @@ -194,6 +195,8 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} /a/lib/lib.d.ts: *new* {"pollingInterval":500} @@ -251,6 +254,8 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/a/b/node_modules/package.json: + {"pollingInterval":2000} /a/lib/lib.d.ts: {"pollingInterval":500} @@ -392,6 +397,7 @@ Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/b/node_modules/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -489,6 +495,7 @@ Info seq [hh:mm:ss:mss] Projects: Info seq [hh:mm:ss:mss] FileName: /a/module1.ts ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1*,/a/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject2* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -550,9 +557,15 @@ After running Timeout callback:: count: 0 PolledWatches:: /a/b/node_modules/node_modules/@types: *new* {"pollingInterval":500} +/a/b/node_modules/package.json: + {"pollingInterval":2000} *new* /a/lib/lib.d.ts: {"pollingInterval":500} +PolledWatches *deleted*:: +/a/b/node_modules/package.json: + {"pollingInterval":2000} + FsWatches:: /a/b/tsconfig.json: {} diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js b/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js index a853fa0bf729e..bb630577e2635 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js @@ -92,6 +92,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/lib/index.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/lib/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots @@ -191,10 +196,20 @@ After request PolledWatches:: /user/username/projects/myproject/bar/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/foo/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/foo/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -267,6 +282,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/foobar/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo 1 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo 1 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/lib/package.json 2000 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/package.json 2000 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foobar/package.json 2000 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foobar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foobar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foobar/tsconfig.json WatchType: Type roots @@ -597,12 +617,24 @@ After request PolledWatches:: /user/username/projects/myproject/bar/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/bar/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/foo/lib/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/foo/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/foobar/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/foobar/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -686,6 +718,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/foo/tsconfig. } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/foo/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/package.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots @@ -797,14 +832,26 @@ After request PolledWatches:: /user/username/projects/myproject/bar/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/bar/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/foo/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/foo/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/foo/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/foobar/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/foobar/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -906,14 +953,26 @@ After request PolledWatches:: /user/username/projects/myproject/bar/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/bar/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/foo/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/foo/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/foo/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/foobar/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/foobar/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js index 67fd219bdbd4b..0266e07f66062 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js @@ -101,6 +101,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2017.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/package.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/package.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots @@ -202,16 +206,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/bar/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/foo/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/foo/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.es2017.d.ts: *new* @@ -290,6 +302,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.dom.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots @@ -402,16 +417,24 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/bar/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/bar/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/foo/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/foo/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.dom.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js index 7b93f7d0b3897..2c31bc1913d76 100644 --- a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js +++ b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js @@ -64,6 +64,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/module1.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -161,8 +163,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -194,7 +200,7 @@ ScriptInfos:: /user/username/projects/myproject/tsconfig.json DocumentRegistry:: - Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined + Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined|1 /user/username/projects/myproject/index.ts: TS 1 /user/username/projects/myproject/module1.d.ts: TS 1 /a/lib/lib.d.ts: TS 1 @@ -241,6 +247,8 @@ ScriptInfos:: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -255,7 +263,7 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- DocumentRegistry:: - Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined + Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined|1 /user/username/projects/myproject/index.ts: TS 1 /a/lib/lib.d.ts: TS 1 Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /user/username/projects/myproject/module1.d.ts 1:: WatchInfo: /user/username/projects/myproject/module1.d.ts 500 undefined WatchType: Closed Script info @@ -266,6 +274,28 @@ export const a: number; export const b: number; +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject: + {} +/user/username/projects/myproject/module1.d.ts: + {} +/user/username/projects/myproject/tsconfig.json: + {} + Projects:: /user/username/projects/myproject/tsconfig.json (Configured) *changed* projectStateVersion: 2 @@ -328,6 +358,8 @@ ScriptInfos:: containingProjects: 0 Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -345,7 +377,7 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- DocumentRegistry:: - Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined + Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined|1 /user/username/projects/myproject/index.ts: TS 1 /a/lib/lib.d.ts: TS 1 /user/username/projects/myproject/module1.d.ts: TS 1 \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js index e183914ba1ce5..10c20061fafef 100644 --- a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js +++ b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js @@ -64,6 +64,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/module1.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -161,8 +163,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -194,7 +200,7 @@ ScriptInfos:: /user/username/projects/myproject/tsconfig.json DocumentRegistry:: - Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined + Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined|1 /user/username/projects/myproject/index.ts: TS 1 /user/username/projects/myproject/module1.d.ts: TS 1 /a/lib/lib.d.ts: TS 1 @@ -241,6 +247,8 @@ ScriptInfos:: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -255,11 +263,33 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- DocumentRegistry:: - Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined + Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined|1 /user/username/projects/myproject/index.ts: TS 1 /a/lib/lib.d.ts: TS 1 Before request +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject: + {} +/user/username/projects/myproject/module1.d.ts: + {} +/user/username/projects/myproject/tsconfig.json: + {} + Projects:: /user/username/projects/myproject/tsconfig.json (Configured) *changed* projectStateVersion: 2 @@ -320,6 +350,8 @@ ScriptInfos:: containingProjects: 0 Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -337,7 +369,7 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- DocumentRegistry:: - Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined + Key:: undefined|undefined|undefined|false|undefined|undefined|undefined|undefined|undefined|undefined|1 /user/username/projects/myproject/index.ts: TS 1 /a/lib/lib.d.ts: TS 1 /user/username/projects/myproject/module1.d.ts: TS 1 \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js index ad306860d5050..55c4dbb4a7784 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js @@ -55,6 +55,9 @@ Info seq [hh:mm:ss:mss] event: } } 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -95,18 +98,24 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/large: *new* {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js index a2fee4d76a434..38e46e5573621 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js @@ -81,6 +81,9 @@ Info seq [hh:mm:ss:mss] event: } } 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -200,8 +203,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-module-resolution.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-module-resolution.js index 41cd4d2d71830..b904e7f691e1e 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-module-resolution.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-module-resolution.js @@ -39,6 +39,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/large.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -79,16 +82,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js index c80884b7b9cba..fb0b0cd829341 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js @@ -69,6 +69,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/large.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -183,8 +186,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js index 55970e407aaf9..1b0a466cd9dca 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js @@ -65,6 +65,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b 1 undefined Config: /user/username/projects/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/b/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -159,8 +161,12 @@ After request PolledWatches:: /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js index 1dbdf5e2f36ad..653cfe4d88e7c 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js @@ -65,6 +65,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b 1 undefined Config: /user/username/projects/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/b/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -156,8 +158,12 @@ After request PolledWatches:: /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js index 2fe80522fbe2a..4151eb743446c 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js @@ -56,6 +56,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -150,8 +152,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js index e29495744baec..cf2f2a0945acd 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js @@ -56,6 +56,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -147,8 +149,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js index c1a1d6b93ae2a..36ac6d64a6957 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js @@ -127,6 +127,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -225,8 +227,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js index 3b26a464b8055..1b750a649fa81 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js @@ -127,6 +127,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -222,8 +224,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js index bca5d4a99b21d..24b490eba9617 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js @@ -91,6 +91,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -173,8 +175,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js index fa89c67f1dce9..5240416e86adb 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js @@ -91,6 +91,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -170,8 +172,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js index f63fc92caaefa..dd9833c671e25 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js @@ -126,6 +126,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -220,8 +222,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js index 8b32c93c01c1c..094cc52d52f52 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js @@ -126,6 +126,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -217,8 +219,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js index acf445f81855c..abc996c701124 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js @@ -108,6 +108,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -221,10 +224,16 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -291,6 +300,8 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -432,10 +443,16 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/b/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js index 6d550e9969e54..69e50b8227dcc 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js @@ -108,6 +108,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -218,10 +221,16 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -288,6 +297,8 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -426,10 +437,16 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/b/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js index 42276c593fd66..2f1c2a162b5a2 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js @@ -104,6 +104,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -214,10 +217,16 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -282,6 +291,8 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -423,10 +434,16 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/b/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js index 2d1a6821554c8..a1d651141daf7 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js @@ -104,6 +104,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/a.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -211,10 +214,16 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -279,6 +288,8 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -417,10 +428,16 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/b/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js index 537064baf5381..f1dfb4d0366d0 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js @@ -62,6 +62,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -156,8 +158,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -220,6 +226,8 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b 1 undefined Config: /user/username/projects/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b 1 undefined Config: /user/username/projects/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -320,10 +328,16 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js index 13e2aced39c90..3d05f83f1d37f 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js @@ -62,6 +62,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a 1 undefined Config: /user/username/projects/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -153,8 +155,12 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -217,6 +223,8 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b 1 undefined Config: /user/username/projects/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b 1 undefined Config: /user/username/projects/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/b/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Type roots @@ -314,10 +322,16 @@ After request PolledWatches:: /user/username/projects/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js index 597e7603638d5..b46a0785a5e3a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js @@ -68,6 +68,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/project/tscon 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: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/package.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -160,6 +161,8 @@ After request PolledWatches:: /a/b/project/node_modules: *new* {"pollingInterval":500} +/a/b/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/b/project/file3.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js index 8e5a70381907d..18d143df746c2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js @@ -76,6 +76,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/ro Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -170,12 +175,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/rootfolder/otherfolder/a/b/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -323,12 +338,22 @@ export class a { } PolledWatches:: /user/username/rootfolder/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/rootfolder/otherfolder/a/b/node_modules: @@ -374,6 +399,7 @@ Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/a/b/proj Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations @@ -430,8 +456,20 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/rootfolder/otherfolder/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/a/b/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/a/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/rootfolder/node_modules: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index cad969d4e6bd1..cec041bc9f6d4 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -51,6 +51,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -190,10 +192,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -282,10 +288,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -401,8 +411,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index deb68d9a92318..84727e149989f 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -51,6 +51,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -191,8 +193,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -281,8 +287,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -396,8 +406,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js index 11a9ab0730cc3..c4875561bc1c1 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -183,10 +185,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -275,10 +281,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -406,8 +416,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js index 221a7539b9a2a..0b8214f4c0447 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -183,10 +185,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -275,10 +281,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -418,8 +428,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js index abbc142b1d3d3..d5c8e6cea9ce7 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -183,10 +185,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -275,10 +281,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -414,10 +424,14 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -745,8 +759,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js index f96c1134fa948..6795023c79a0e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -183,10 +185,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -275,10 +281,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -394,8 +404,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js index cfd66f00602d9..245fd655041f2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js @@ -48,6 +48,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -185,10 +187,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -257,10 +263,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -358,8 +368,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js index f177e19945340..97385b0d9ea3c 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile2.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -182,10 +184,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -229,10 +235,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -335,10 +345,14 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -385,8 +399,12 @@ export var Foo4 = 10; PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile2.ts: @@ -465,8 +483,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js index ad20684e2f7b4..ce811af5fd5b6 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -182,10 +184,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -244,8 +250,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -321,10 +331,14 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js index a8533414125af..8d30ee0d7bf4b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -183,10 +185,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -275,10 +281,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -394,8 +404,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js index e6b41a06c332d..288b8083a74ab 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -183,10 +185,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -285,10 +291,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -434,8 +444,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js index ed888ec89db02..51269acd81468 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/file2.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -182,10 +184,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/file2.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -245,8 +251,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -327,8 +337,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* 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 new file mode 100644 index 0000000000000..cb81bc3fb4527 --- /dev/null +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js @@ -0,0 +1,413 @@ +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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +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/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types: *new* + {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + +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/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types: + {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + +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/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js index dc35f6a749ccb..c0d348d61ff5c 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js @@ -61,6 +61,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -154,8 +156,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -255,8 +261,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js index d924d419a9439..61b40d0b9df2a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js @@ -56,6 +56,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -147,8 +149,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -248,8 +254,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -359,8 +369,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js index d3a3301ae247e..7095d1f733e74 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js @@ -58,6 +58,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -149,8 +151,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -250,8 +256,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index c2237fbb3d80b..82089d2d520cd 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -68,6 +68,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/project/tscon 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: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/package.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -163,6 +164,8 @@ After request PolledWatches:: /a/b/project/node_modules: *new* {"pollingInterval":500} +/a/b/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/b/project/file3.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 7ba23bbf53960..f98c68e3295a5 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -76,6 +76,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/ro Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -173,12 +178,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/rootfolder/otherfolder/a/b/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -327,12 +342,22 @@ export class a { } PolledWatches:: /user/username/rootfolder/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/rootfolder/otherfolder/a/b/node_modules: @@ -378,6 +403,7 @@ Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/a/b/proj Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations @@ -435,8 +461,20 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/rootfolder/otherfolder/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/a/b/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/a/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/rootfolder/node_modules: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index 22267bcce60d1..b5189926b9d4a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -51,6 +51,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -193,10 +195,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -285,10 +291,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -405,8 +415,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index 6257cac900466..e0547faa1abad 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -51,6 +51,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -194,8 +196,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -284,8 +290,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -400,8 +410,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js index 0a0c8770c893f..cc6bbf6516c0d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -410,8 +420,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js index 30c1cedb515a0..2e78c94f7ced7 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -422,8 +432,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js index 8b221395a9859..d990de8f9a0f4 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -418,10 +428,14 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -751,8 +765,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js index b0dc743170c1f..83115073bd8cc 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -398,8 +408,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index 5b62d8147eff6..2c3f775d801e8 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -48,6 +48,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -188,10 +190,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -260,10 +266,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -362,8 +372,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js index 39854d0be20ee..718c5ee693add 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile2.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -185,10 +187,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -232,10 +238,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -339,10 +349,14 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -389,8 +403,12 @@ export var Foo4 = 10; PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile2.ts: @@ -470,8 +488,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js index 4f8f25692010c..266a23a19a713 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -185,10 +187,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -247,8 +253,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -325,10 +335,14 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js index f76fc77dc12d3..9a3f8f81b9393 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -398,8 +408,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js index 6235724aa7671..0b3a1ed3d4151 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -288,10 +294,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -438,8 +448,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js index 1d3ce5f876da4..2cbc49569e993 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/file2.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -185,10 +187,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/file2.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -248,8 +254,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -331,8 +341,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* 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 new file mode 100644 index 0000000000000..b621af60327e7 --- /dev/null +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -0,0 +1,418 @@ +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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +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/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types: *new* + {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + +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/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types: + {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + +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/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index 2527a0abcc236..89c9ffd72f943 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -61,6 +61,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -157,8 +159,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -259,8 +265,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js index b5d0357569315..c417d9d33d504 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js @@ -56,6 +56,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -150,8 +152,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -252,8 +258,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -364,8 +374,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index 515b2251ee9a4..1d1fee7fe8446 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -58,6 +58,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -152,8 +154,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -254,8 +260,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index 5782d0f639054..44e0ac4be97fa 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -68,6 +68,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/project/tscon 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: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/package.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -163,6 +164,8 @@ After request PolledWatches:: /a/b/project/node_modules: *new* {"pollingInterval":500} +/a/b/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/b/project/file3.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 66d6ca55238ac..e34e401509603 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -76,6 +76,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/ro Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -173,12 +178,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/rootfolder/otherfolder/a/b/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/package.json: *new* + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/node_modules: *new* {"pollingInterval":500} +/user/username/rootfolder/otherfolder/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -332,12 +347,22 @@ export class a { } PolledWatches:: /user/username/rootfolder/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/rootfolder/otherfolder/a/b/node_modules: @@ -365,6 +390,7 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations @@ -403,8 +429,20 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 1 PolledWatches:: +/user/username/rootfolder/otherfolder/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/a/b/package.json: + {"pollingInterval":2000} /user/username/rootfolder/otherfolder/a/b/project/node_modules: {"pollingInterval":500} +/user/username/rootfolder/otherfolder/a/b/project/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/a/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/otherfolder/package.json: + {"pollingInterval":2000} +/user/username/rootfolder/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/rootfolder/node_modules: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index 21c4de3770055..60e35386e3b9e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -51,6 +51,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -193,10 +195,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -285,10 +291,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -406,8 +416,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index 3f0e602e47663..7ffcf311fbddf 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -51,6 +51,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -194,8 +196,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -284,8 +290,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -401,8 +411,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js index 456281ad264da..23838b05699fb 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -411,8 +421,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js index d79f611debc9d..61763e02f163b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -423,8 +433,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js index 0b219cb647712..4944c3b12b843 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -419,10 +429,14 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -775,8 +789,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js index 9762dfd1d27b1..17ef78655b479 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -399,8 +409,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index f938b8a350577..a9300765205ff 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -48,6 +48,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -188,10 +190,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -260,10 +266,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -363,8 +373,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js index cc4005ccc09d3..157976873d0e6 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile2.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -185,10 +187,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -232,10 +238,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -340,10 +350,14 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile2.ts: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -394,8 +408,12 @@ export var Foo4 = 10; PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile2.ts: @@ -487,8 +505,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js index 3798d054b0463..68ed5fd3a54c2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -185,10 +187,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -247,8 +253,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -326,10 +336,14 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js index 86455e4328dbc..f15530a386228 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -278,10 +284,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -399,8 +409,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js index 894555e9c808f..f4d4a1be5b21d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js @@ -46,6 +46,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile1 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -186,10 +188,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -288,10 +294,14 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile1: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -439,8 +449,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile1: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js index 181dca53ee737..114843d472d7b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/file2.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -185,10 +187,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/file2.ts: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -248,8 +254,12 @@ interface Array { length: number; [n: number]: T; } PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/lib/lib.d.ts: @@ -332,8 +342,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* 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 new file mode 100644 index 0000000000000..c96a22b6d8b85 --- /dev/null +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -0,0 +1,440 @@ +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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +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/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types: *new* + {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + +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/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types: + {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + +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/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index 139b598418a59..dedadbf6038e6 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -61,6 +61,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -157,8 +159,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -260,8 +266,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js index fd349ec4b1a05..c1f01d86cc165 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js @@ -56,6 +56,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -150,8 +152,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -253,8 +259,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -381,8 +391,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index 7840a74145d59..20c0ec2dc6b05 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -58,6 +58,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -152,8 +154,12 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -255,8 +261,12 @@ After running Timeout callback:: count: 1 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js index f4967a6194cc0..3ac1309852d9d 100644 --- a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js +++ b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js @@ -51,6 +51,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -87,8 +89,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -187,8 +193,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -366,8 +376,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -432,8 +446,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js index b7bc70a6bb148..70a72aff8e420 100644 --- a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js @@ -106,6 +106,30 @@ Info seq [hh:mm:ss:mss] event: } } Custom watchFile: 4: /a/lib/lib.d.ts +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 5, + "path": "/user/username/projects/myproject/package.json" + } + } +Custom watchFile: 5: /user/username/projects/myproject/package.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 6, + "path": "/user/username/projects/package.json" + } + } +Custom watchFile: 6: /user/username/projects/package.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] event: { @@ -113,12 +137,12 @@ Info seq [hh:mm:ss:mss] event: "type": "event", "event": "CustomHandler::createDirectoryWatcher", "body": { - "id": 5, + "id": 7, "path": "/user/username/projects/myproject/node_modules/@types", "recursive": true } } -Custom watchDirectory: 5: /user/username/projects/myproject/node_modules/@types true +Custom watchDirectory: 7: /user/username/projects/myproject/node_modules/@types true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] event: @@ -127,12 +151,12 @@ Info seq [hh:mm:ss:mss] event: "type": "event", "event": "CustomHandler::createDirectoryWatcher", "body": { - "id": 6, + "id": 8, "path": "/user/username/projects/node_modules/@types", "recursive": true } } -Custom watchDirectory: 6: /user/username/projects/node_modules/@types true +Custom watchDirectory: 8: /user/username/projects/node_modules/@types true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -226,16 +250,20 @@ Custom WatchedFiles:: {"id":4,"path":"/a/lib/lib.d.ts"} /user/username/projects/myproject/b.ts: *new* {"id":3,"path":"/user/username/projects/myproject/b.ts"} +/user/username/projects/myproject/package.json: *new* + {"id":5,"path":"/user/username/projects/myproject/package.json"} /user/username/projects/myproject/tsconfig.json: *new* {"id":1,"path":"/user/username/projects/myproject/tsconfig.json"} +/user/username/projects/package.json: *new* + {"id":6,"path":"/user/username/projects/package.json"} Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: *new* {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: *new* - {"id":5,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} + {"id":7,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} /user/username/projects/node_modules/@types: *new* - {"id":6,"path":"/user/username/projects/node_modules/@types","recursive":true} + {"id":8,"path":"/user/username/projects/node_modules/@types","recursive":true} Projects:: /user/username/projects/myproject/tsconfig.json (Configured) *new* @@ -310,11 +338,11 @@ Info seq [hh:mm:ss:mss] event: "type": "event", "event": "CustomHandler::createFileWatcher", "body": { - "id": 7, + "id": 9, "path": "/user/username/projects/myproject/c.ts" } } -Custom watchFile: 7: /user/username/projects/myproject/c.ts +Custom watchFile: 9: /user/username/projects/myproject/c.ts Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -371,17 +399,21 @@ Custom WatchedFiles:: /user/username/projects/myproject/b.ts: {"id":3,"path":"/user/username/projects/myproject/b.ts"} /user/username/projects/myproject/c.ts: *new* - {"id":7,"path":"/user/username/projects/myproject/c.ts"} + {"id":9,"path":"/user/username/projects/myproject/c.ts"} +/user/username/projects/myproject/package.json: + {"id":5,"path":"/user/username/projects/myproject/package.json"} /user/username/projects/myproject/tsconfig.json: {"id":1,"path":"/user/username/projects/myproject/tsconfig.json"} +/user/username/projects/package.json: + {"id":6,"path":"/user/username/projects/package.json"} Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: - {"id":5,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} + {"id":7,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} /user/username/projects/node_modules/@types: - {"id":6,"path":"/user/username/projects/node_modules/@types","recursive":true} + {"id":8,"path":"/user/username/projects/node_modules/@types","recursive":true} Projects:: /user/username/projects/myproject/tsconfig.json (Configured) *changed* @@ -581,9 +613,13 @@ Custom WatchedFiles:: /a/lib/lib.d.ts: {"id":4,"path":"/a/lib/lib.d.ts"} /user/username/projects/myproject/c.ts: - {"id":7,"path":"/user/username/projects/myproject/c.ts"} + {"id":9,"path":"/user/username/projects/myproject/c.ts"} +/user/username/projects/myproject/package.json: + {"id":5,"path":"/user/username/projects/myproject/package.json"} /user/username/projects/myproject/tsconfig.json: {"id":1,"path":"/user/username/projects/myproject/tsconfig.json"} +/user/username/projects/package.json: + {"id":6,"path":"/user/username/projects/package.json"} Custom WatchedFiles *deleted*:: /user/username/projects/myproject/b.ts: @@ -593,9 +629,9 @@ Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: - {"id":5,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} + {"id":7,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} /user/username/projects/node_modules/@types: - {"id":6,"path":"/user/username/projects/node_modules/@types","recursive":true} + {"id":8,"path":"/user/username/projects/node_modules/@types","recursive":true} ScriptInfos:: /a/lib/lib.d.ts @@ -634,11 +670,11 @@ Info seq [hh:mm:ss:mss] event: "type": "event", "event": "CustomHandler::createFileWatcher", "body": { - "id": 8, + "id": 10, "path": "/user/username/projects/myproject/b.ts" } } -Custom watchFile: 8: /user/username/projects/myproject/b.ts +Custom watchFile: 10: /user/username/projects/myproject/b.ts Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -656,19 +692,23 @@ Custom WatchedFiles:: /a/lib/lib.d.ts: {"id":4,"path":"/a/lib/lib.d.ts"} /user/username/projects/myproject/b.ts: *new* - {"id":8,"path":"/user/username/projects/myproject/b.ts"} + {"id":10,"path":"/user/username/projects/myproject/b.ts"} /user/username/projects/myproject/c.ts: - {"id":7,"path":"/user/username/projects/myproject/c.ts"} + {"id":9,"path":"/user/username/projects/myproject/c.ts"} +/user/username/projects/myproject/package.json: + {"id":5,"path":"/user/username/projects/myproject/package.json"} /user/username/projects/myproject/tsconfig.json: {"id":1,"path":"/user/username/projects/myproject/tsconfig.json"} +/user/username/projects/package.json: + {"id":6,"path":"/user/username/projects/package.json"} Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: - {"id":5,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} + {"id":7,"path":"/user/username/projects/myproject/node_modules/@types","recursive":true} /user/username/projects/node_modules/@types: - {"id":6,"path":"/user/username/projects/node_modules/@types","recursive":true} + {"id":8,"path":"/user/username/projects/node_modules/@types","recursive":true} ScriptInfos:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/findAllReferences/does-not-try-to-open-a-file-in-a-project-that-was-updated-and-no-longer-has-the-file.js b/tests/baselines/reference/tsserver/findAllReferences/does-not-try-to-open-a-file-in-a-project-that-was-updated-and-no-longer-has-the-file.js index 1b4a32e207ba9..bc32a870cdd1f 100644 --- a/tests/baselines/reference/tsserver/findAllReferences/does-not-try-to-open-a-file-in-a-project-that-was-updated-and-no-longer-has-the-file.js +++ b/tests/baselines/reference/tsserver/findAllReferences/does-not-try-to-open-a-file-in-a-project-that-was-updated-and-no-longer-has-the-file.js @@ -132,6 +132,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/core/sr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/core/src 1 undefined Config: /packages/core/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/core/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/core/src/loading-indicator.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/core/src/package.json 2000 undefined Project: /packages/babel-loader/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/babel-loader/src/package.json 2000 undefined Project: /packages/babel-loader/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2018.full.d.ts 500 undefined Project: /packages/babel-loader/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/babel-loader/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/babel-loader/tsconfig.json' (Configured) @@ -293,6 +295,10 @@ After request PolledWatches:: /a/lib/lib.es2018.full.d.ts: *new* {"pollingInterval":500} +/packages/babel-loader/src/package.json: *new* + {"pollingInterval":2000} +/packages/core/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /packages/babel-loader/tsconfig.json: *new* @@ -360,6 +366,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/core/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/core/src/package.json 2000 undefined Project: /packages/core/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2018.full.d.ts 500 undefined Project: /packages/core/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/core/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/core/tsconfig.json' (Configured) @@ -525,6 +532,10 @@ After request PolledWatches:: /a/lib/lib.es2018.full.d.ts: {"pollingInterval":500} +/packages/babel-loader/src/package.json: + {"pollingInterval":2000} +/packages/core/src/package.json: + {"pollingInterval":2000} FsWatches:: /packages/babel-loader/tsconfig.json: @@ -644,6 +655,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] Finding references to /packages/core/src/index.ts position 92 in project /packages/core/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/babel-loader/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/core/src/package.json 2000 undefined Project: /packages/babel-loader/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/babel-loader/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/babel-loader/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -737,8 +749,12 @@ After request PolledWatches:: /a/lib/lib.es2018.full.d.ts: {"pollingInterval":500} +/packages/babel-loader/src/package.json: + {"pollingInterval":2000} /packages/core/dist/loading-indicator.d.ts: *new* {"pollingInterval":2000} +/packages/core/src/package.json: + {"pollingInterval":2000} FsWatches:: /packages/babel-loader/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js index 79ac994064e0c..8c158e96c1b73 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js @@ -67,6 +67,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/Logger.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -167,8 +169,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js index 38c64bcd4dbc1..a1463e0fad7ac 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js @@ -96,6 +96,10 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /Users/username/de Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /Users/username/dev/project/package.json 2000 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/username/dev/package.json 2000 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/username/dev/project/types/file2/package.json 2000 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/username/dev/project/types/package.json 2000 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /Users/username/dev/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -196,6 +200,16 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/Users/username/dev/package.json: *new* + {"pollingInterval":2000} +/Users/username/dev/project/package.json: *new* + {"pollingInterval":2000} +/Users/username/dev/project/types/file2/package.json: *new* + {"pollingInterval":2000} +/Users/username/dev/project/types/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /Users/username/dev/project/tsconfig.all.json: *new* {} diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js index 828c52dea69dd..658142767cc8c 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js @@ -67,6 +67,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/another.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -167,8 +169,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -315,8 +321,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -395,8 +405,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -469,8 +483,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js index 8708f0eead2df..da3bd3b022d03 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js @@ -201,6 +201,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/app/ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/common/lib/index.tsx 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/common/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/common/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -264,8 +266,11 @@ watchedFiles:: {"pollingInterval":2000} /project/packages/common/lib/index.tsx: *new* {"pollingInterval":500} +/project/packages/common/lib/package.json: *new* + {"pollingInterval":2000} /project/packages/common/package.json: {"pollingInterval":250} + {"pollingInterval":2000} *new* watchedDirectoriesRecursive:: /project/packages/app: *new* @@ -478,8 +483,11 @@ watchedFiles:: {"pollingInterval":2000} /project/packages/common/lib/index.tsx: {"pollingInterval":500} +/project/packages/common/lib/package.json: + {"pollingInterval":2000} /project/packages/common/package.json: {"pollingInterval":250} + {"pollingInterval":2000} watchedDirectoriesRecursive:: /project/node_modules: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js index 8463e81222b9d..6ae9aa4ebf7e0 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js @@ -196,6 +196,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/index.ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/sub 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/sub 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/sub/folder/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/sub/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) @@ -288,6 +290,10 @@ watchedFiles:: {"pollingInterval":500} /packages/dep/sub/folder/index.ts: *new* {"pollingInterval":500} +/packages/dep/sub/folder/package.json: *new* + {"pollingInterval":2000} +/packages/dep/sub/package.json: *new* + {"pollingInterval":2000} /packages/dep/tsconfig.json: *new* {"pollingInterval":2000} /tsconfig.base.json: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js index a9826834a2121..2dbefc776898c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js @@ -132,6 +132,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) @@ -186,6 +190,9 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -319,14 +326,25 @@ watchedFiles:: {"pollingInterval":500} /packages/app/src/index.ts: *new* {"pollingInterval":500} +/packages/app/src/package.json: *new* + {"pollingInterval":2000} /packages/app/src/utils.ts: *new* {"pollingInterval":500} /packages/app/tsconfig.json: *new* {"pollingInterval":2000} /packages/dep/src/main.ts: *new* {"pollingInterval":500} +/packages/dep/src/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: *new* {"pollingInterval":2000} @@ -439,14 +457,25 @@ watchedFiles:: {"pollingInterval":250} /packages/app/src/a.ts: {"pollingInterval":500} +/packages/app/src/package.json: + {"pollingInterval":2000} /packages/app/src/utils.ts: {"pollingInterval":500} /packages/app/tsconfig.json: {"pollingInterval":2000} /packages/dep/src/main.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} @@ -853,12 +882,23 @@ watchedFiles:: {"pollingInterval":250} /packages/app/src/a.ts: {"pollingInterval":500} +/packages/app/src/package.json: + {"pollingInterval":2000} /packages/app/tsconfig.json: {"pollingInterval":2000} /packages/dep/src/main.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js index 4e2590311aaf8..c1766d6ac29f0 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js @@ -132,6 +132,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) @@ -186,6 +190,9 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -319,14 +326,25 @@ watchedFiles:: {"pollingInterval":500} /packages/app/src/index.ts: *new* {"pollingInterval":500} +/packages/app/src/package.json: *new* + {"pollingInterval":2000} /packages/app/src/utils.ts: *new* {"pollingInterval":500} /packages/app/tsconfig.json: *new* {"pollingInterval":2000} /packages/dep/src/main.ts: *new* {"pollingInterval":500} +/packages/dep/src/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: *new* {"pollingInterval":2000} @@ -439,14 +457,25 @@ watchedFiles:: {"pollingInterval":250} /packages/app/src/a.ts: {"pollingInterval":500} +/packages/app/src/package.json: + {"pollingInterval":2000} /packages/app/src/utils.ts: {"pollingInterval":500} /packages/app/tsconfig.json: {"pollingInterval":2000} /packages/dep/src/main.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} @@ -853,12 +882,23 @@ watchedFiles:: {"pollingInterval":250} /packages/app/src/a.ts: {"pollingInterval":500} +/packages/app/src/package.json: + {"pollingInterval":2000} /packages/app/tsconfig.json: {"pollingInterval":2000} /packages/dep/src/main.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js index 9f764fc390b0f..6ce9b7cbe673a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js @@ -132,6 +132,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) @@ -186,6 +190,9 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -319,14 +326,25 @@ watchedFiles:: {"pollingInterval":500} /packages/app/src/index.ts: *new* {"pollingInterval":500} +/packages/app/src/package.json: *new* + {"pollingInterval":2000} /packages/app/src/utils.ts: *new* {"pollingInterval":500} /packages/app/tsconfig.json: *new* {"pollingInterval":2000} /packages/dep/src/main.ts: *new* {"pollingInterval":500} +/packages/dep/src/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: *new* {"pollingInterval":2000} @@ -439,14 +457,25 @@ watchedFiles:: {"pollingInterval":250} /packages/app/src/a.ts: {"pollingInterval":500} +/packages/app/src/package.json: + {"pollingInterval":2000} /packages/app/src/utils.ts: {"pollingInterval":500} /packages/app/tsconfig.json: {"pollingInterval":2000} /packages/dep/src/main.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} @@ -853,12 +882,23 @@ watchedFiles:: {"pollingInterval":250} /packages/app/src/a.ts: {"pollingInterval":500} +/packages/app/src/package.json: + {"pollingInterval":2000} /packages/app/tsconfig.json: {"pollingInterval":2000} /packages/dep/src/main.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js index a3041a98798b7..7e7b6c456addc 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js @@ -158,6 +158,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -293,8 +296,14 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/package.json: *new* + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: *new* + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: *new* + {"pollingInterval":2000} /packages/dep/tsconfig.json: *new* {"pollingInterval":2000} @@ -398,8 +407,14 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} @@ -575,6 +590,9 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -641,8 +659,17 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /packages/dep/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js index b47b3f6990efc..da948edee285b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js @@ -158,6 +158,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -293,8 +296,14 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/package.json: *new* + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: *new* + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: *new* + {"pollingInterval":2000} /packages/dep/tsconfig.json: *new* {"pollingInterval":2000} @@ -398,8 +407,14 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} @@ -575,6 +590,9 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -641,8 +659,17 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /packages/dep/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js index 05765c0157964..6a99b647e09c6 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js @@ -149,6 +149,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /packages/dep/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -284,8 +287,14 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/package.json: *new* + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: *new* {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: *new* + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: *new* + {"pollingInterval":2000} /packages/dep/tsconfig.json: *new* {"pollingInterval":2000} @@ -389,8 +398,14 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} /packages/dep/tsconfig.json: {"pollingInterval":2000} @@ -566,6 +581,9 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -632,8 +650,17 @@ watchedFiles:: {"pollingInterval":2000} /packages/dep/src/index.ts: {"pollingInterval":500} +/packages/dep/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /packages/dep/src/sub/folder/index.ts: {"pollingInterval":500} +/packages/dep/src/sub/folder/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/packages/dep/src/sub/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /packages/dep/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js index 015bf16549e31..d063d20496c17 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js @@ -141,6 +141,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/clients/s3.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/clients/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -179,6 +180,8 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/project/node_modules/aws-sdk/clients/package.json: *new* + {"pollingInterval":2000} /project/node_modules/aws-sdk/clients/s3.d.ts: *new* {"pollingInterval":500} /project/node_modules/aws-sdk/index.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js index 5f8f126d63f5a..2c4045b40ecf5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js @@ -141,6 +141,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/clients/s3.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/clients/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -179,6 +180,8 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/project/node_modules/aws-sdk/clients/package.json: *new* + {"pollingInterval":2000} /project/node_modules/aws-sdk/clients/s3.d.ts: *new* {"pollingInterval":500} /project/node_modules/aws-sdk/index.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js index 673f9c35f625f..1381c0fb10cee 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js @@ -141,6 +141,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: //tsclient/project/nod Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: //tsclient/project/node_modules/aws-sdk/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: //tsclient/project/node_modules/aws-sdk/clients/s3.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: //tsclient/project/node_modules/aws-sdk/clients/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -173,6 +174,8 @@ Info seq [hh:mm:ss:mss] FileName: //tsclient/project/index.ts ProjectRootPath: Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* After Request watchedFiles:: +//tsclient/project/node_modules/aws-sdk/clients/package.json: *new* + {"pollingInterval":2000} //tsclient/project/node_modules/aws-sdk/clients/s3.d.ts: *new* {"pollingInterval":500} //tsclient/project/node_modules/aws-sdk/index.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js index 18f4f4a9858b3..f210ee86fdd24 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js @@ -161,6 +161,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/package.json Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -202,6 +203,8 @@ watchedFiles:: {"pollingInterval":500} /project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/jsconfig.json: {"pollingInterval":2000} +/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/package.json: *new* + {"pollingInterval":2000} /project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/tsconfig.json: {"pollingInterval":2000} /project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js index b5fcf6af0c642..f77cf7203ea99 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js @@ -200,6 +200,8 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 2 depe Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/project/node_modules/.store/aws-sdk-virtual-adfe098/package/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/project/node_modules/@remix-run/server-runtime/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/project/node_modules/.store/aws-sdk-virtual-adfe098/package/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/project/node_modules/@remix-run/server-runtime/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -244,6 +246,8 @@ c:/project/node_modules/.store/aws-sdk-virtual-adfe098/package/index.d.ts: *new* {"pollingInterval":500} c:/project/node_modules/.store/aws-sdk-virtual-adfe098/package/jsconfig.json: {"pollingInterval":2000} +c:/project/node_modules/.store/aws-sdk-virtual-adfe098/package/package.json: *new* + {"pollingInterval":2000} c:/project/node_modules/.store/aws-sdk-virtual-adfe098/package/tsconfig.json: {"pollingInterval":2000} c:/project/node_modules/.store/aws-sdk-virtual-adfe098/tsconfig.json: @@ -254,6 +258,8 @@ c:/project/node_modules/.store/tsconfig.json: {"pollingInterval":2000} c:/project/node_modules/@remix-run/server-runtime/index.d.ts: *new* {"pollingInterval":500} +c:/project/node_modules/@remix-run/server-runtime/package.json: *new* + {"pollingInterval":2000} c:/project/node_modules/jsconfig.json: {"pollingInterval":2000} c:/project/node_modules/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js index 34b3cb920d5ad..e757548512f56 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js @@ -175,6 +175,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/project/node_m Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/project/node_modules 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/project/node_modules/aws-sdk/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/project/node_modules/aws-sdk/clients/s3.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/project/node_modules/aws-sdk/clients/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -213,6 +214,8 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +c:/project/node_modules/aws-sdk/clients/package.json: *new* + {"pollingInterval":2000} c:/project/node_modules/aws-sdk/clients/s3.d.ts: *new* {"pollingInterval":500} c:/project/node_modules/aws-sdk/index.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js index 6f8cb613b0d05..412d99ca995e3 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js @@ -228,6 +228,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/web/package. Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/utils/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/utils/src/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -289,6 +290,8 @@ watchedFiles:: {"pollingInterval":250} /packages/utils/src/index.ts: *new* {"pollingInterval":500} +/packages/utils/src/package.json: *new* + {"pollingInterval":2000} /packages/utils/tsconfig.json: *new* {"pollingInterval":2000} /packages/web/package.json: *new* @@ -499,6 +502,8 @@ watchedFiles:: {"pollingInterval":250} /packages/utils/src/index.ts: {"pollingInterval":500} +/packages/utils/src/package.json: + {"pollingInterval":2000} /packages/utils/tsconfig.json: {"pollingInterval":2000} /packages/web/package.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js index 60ba36aa44734..6f5adcbe982a2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js @@ -166,6 +166,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 unde Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/forms.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -223,6 +224,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@angular/forms/forms.d.ts: *new* {"pollingInterval":500} +/node_modules/@angular/forms/package.json: *new* + {"pollingInterval":2000} /package.json: *new* {"pollingInterval":250} /tsconfig.json: *new* @@ -467,6 +470,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@angular/forms/forms.d.ts: {"pollingInterval":500} +/node_modules/@angular/forms/package.json: + {"pollingInterval":2000} /package.json: {"pollingInterval":250} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js index 3bb88d83eb84e..abf2ba7bde61c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js @@ -64,6 +64,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react-hook-form/dist/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react-hook-form/dist/useForm.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react-hook-form/dist/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -98,6 +99,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/react-hook-form/dist/index.d.ts: *new* {"pollingInterval":500} +/node_modules/react-hook-form/dist/package.json: *new* + {"pollingInterval":2000} /node_modules/react-hook-form/dist/useForm.d.ts: *new* {"pollingInterval":500} /package.json: *new* @@ -171,6 +174,7 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react-hook-form/dist/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -206,6 +210,23 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/react-hook-form/dist/index.d.ts: + {"pollingInterval":500} +/node_modules/react-hook-form/dist/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/node_modules/react-hook-form/dist/useForm.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} + Projects:: /dev/null/autoImportProviderProject1* (AutoImportProvider) projectStateVersion: 1 @@ -430,6 +451,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/react-hook-form/dist/index.d.ts: {"pollingInterval":500} +/node_modules/react-hook-form/dist/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /node_modules/react-hook-form/dist/useForm.d.ts: {"pollingInterval":500} /package.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js index 6fe4f3e2345a0..42b2387dc269d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js @@ -236,6 +236,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2019.symbol.d.t Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (38) @@ -423,6 +424,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -535,6 +537,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} +/node_modules/@types/react/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /package.json: *new* {"pollingInterval":250} /tsconfig.json: *new* @@ -816,6 +821,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/react/index.d.ts: {"pollingInterval":500} +/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /package.json: {"pollingInterval":250} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js index f56755fe6b88c..5cb2c0fb630c8 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js @@ -90,6 +90,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/index.ts 500 unde Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) @@ -171,6 +172,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (4) @@ -223,6 +225,9 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: *new* {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /src/index.ts: *new* {"pollingInterval":500} /tsconfig.json: *new* @@ -340,6 +345,9 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} @@ -1243,6 +1251,9 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js index 077fc3ec7cb60..471b9b4cc3b11 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js @@ -90,6 +90,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/index.ts 500 unde Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) @@ -171,6 +172,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (4) @@ -223,6 +225,9 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: *new* {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /src/index.ts: *new* {"pollingInterval":500} /tsconfig.json: *new* @@ -340,6 +345,9 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} @@ -1243,6 +1251,9 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js index 298b64ca1d263..f11e3a5ca85e1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js @@ -157,6 +157,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 unde Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -165,6 +166,7 @@ Info seq [hh:mm:ss:mss] Files (1) node_modules/dependency/lib/index.d.ts Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) @@ -192,6 +194,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/dependency/lib/index.d.ts: *new* {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} /package.json: *new* {"pollingInterval":250} /src/foo.ts: *new* @@ -284,6 +288,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/dependency/lib/index.d.ts: {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} /package.json: {"pollingInterval":250} /tsconfig.json: @@ -377,6 +383,7 @@ Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -385,6 +392,7 @@ Info seq [hh:mm:ss:mss] Files (1) node_modules/dependency/lib/index.d.ts Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results @@ -1113,6 +1121,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/dependency/lib/index.d.ts: {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /package.json: {"pollingInterval":250} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js index 07b0a96d3297f..ed084e143bda7 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js @@ -150,6 +150,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 unde Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -185,6 +186,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/dependency/lib/index.d.ts: *new* {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} /package.json: *new* {"pollingInterval":250} /src/foo.ts: *new* @@ -277,6 +280,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/dependency/lib/index.d.ts: {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} /package.json: {"pollingInterval":250} /tsconfig.json: @@ -1115,8 +1120,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/dependency/lib/lol.d.ts: *new* {"pollingInterval":500} -/node_modules/dependency/lib/package.json: *new* +/node_modules/dependency/lib/package.json: {"pollingInterval":2000} + {"pollingInterval":2000} *new* /package.json: {"pollingInterval":250} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js index ec6505bfdb6a4..79f24e03573a5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js @@ -222,6 +222,7 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -283,6 +284,7 @@ watchedFiles:: {"pollingInterval":2000} /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: {"pollingInterval":2000} + {"pollingInterval":2000} *new* /Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: {"pollingInterval":2000} /Library/Caches/typescript/node_modules/@types/tsconfig.json: @@ -988,6 +990,7 @@ watchedFiles:: {"pollingInterval":2000} /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: {"pollingInterval":2000} + {"pollingInterval":2000} /Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: {"pollingInterval":2000} /Library/Caches/typescript/node_modules/@types/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js index 286936db68e6b..8c4c260183e59 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js @@ -166,6 +166,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/fp-ts/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/fp-ts/lib/string.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/fp-ts/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -226,6 +227,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/fp-ts/index.d.ts: *new* {"pollingInterval":500} +/node_modules/fp-ts/lib/package.json: *new* + {"pollingInterval":2000} /node_modules/fp-ts/lib/string.d.ts: *new* {"pollingInterval":500} /package.json: *new* @@ -1243,6 +1246,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/fp-ts/index.d.ts: {"pollingInterval":500} +/node_modules/fp-ts/lib/package.json: + {"pollingInterval":2000} /node_modules/fp-ts/lib/string.d.ts: {"pollingInterval":500} /package.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js index 9e7ae23137900..1e2994bf81d3f 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js @@ -133,6 +133,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 unde Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -170,6 +172,10 @@ watchedFiles:: {"pollingInterval":500} /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: *new* {"pollingInterval":500} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/package.json: *new* + {"pollingInterval":2000} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/package.json: *new* + {"pollingInterval":2000} /package.json: *new* {"pollingInterval":250} /tsconfig.json: *new* @@ -260,6 +266,10 @@ watchedFiles:: {"pollingInterval":500} /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: {"pollingInterval":500} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/package.json: + {"pollingInterval":2000} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/package.json: + {"pollingInterval":2000} /package.json: {"pollingInterval":250} /tsconfig.json: @@ -424,6 +434,8 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -483,6 +495,12 @@ watchedFiles:: {"pollingInterval":500} /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: {"pollingInterval":500} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /package.json: {"pollingInterval":250} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js index ca7b25b12cdf9..9183c9dbb1bf0 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js @@ -197,6 +197,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/apps/web/pack Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/ui/src/Card.tsx 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/ui/src/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/ui/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -258,8 +260,11 @@ watchedFiles:: {"pollingInterval":2000} /project/packages/ui/package.json: {"pollingInterval":250} + {"pollingInterval":2000} *new* /project/packages/ui/src/Card.tsx: *new* {"pollingInterval":500} +/project/packages/ui/src/package.json: *new* + {"pollingInterval":2000} watchedDirectoriesRecursive:: /project/apps/web/app: *new* @@ -675,8 +680,11 @@ watchedFiles:: {"pollingInterval":2000} /project/packages/ui/package.json: {"pollingInterval":250} + {"pollingInterval":2000} /project/packages/ui/src/Card.tsx: {"pollingInterval":500} +/project/packages/ui/src/package.json: + {"pollingInterval":2000} watchedDirectoriesRecursive:: /project/apps/web/app: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js index f83e65ddfa23e..f0b63cbda93db 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js @@ -72,6 +72,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/fs-extra/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/fs-extra/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) @@ -120,6 +121,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/fs-extra/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -168,6 +170,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/fs-extra/index.d.ts: *new* {"pollingInterval":500} +/node_modules/@types/fs-extra/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /node_modules/@types/node/index.d.ts: *new* {"pollingInterval":500} /tsconfig.json: *new* @@ -256,6 +261,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/fs-extra/index.d.ts: {"pollingInterval":500} +/node_modules/@types/fs-extra/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /node_modules/@types/node/index.d.ts: {"pollingInterval":500} /tsconfig.json: @@ -1087,6 +1095,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/fs-extra/index.d.ts: {"pollingInterval":500} +/node_modules/@types/fs-extra/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /node_modules/@types/node/index.d.ts: {"pollingInterval":500} /tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js index 70851164b6a9a..ff18a6f9d5898 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -82,8 +84,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} @@ -856,6 +862,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -905,6 +913,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -926,11 +936,21 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} +watchedFiles *deleted*:: +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + watchedDirectories:: /tests/cases/fourslash/server: *new* {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js index 3df15493bfddb..41e8834ec91fa 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -82,8 +84,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} @@ -862,6 +868,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -911,6 +919,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -932,11 +942,21 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} +watchedFiles *deleted*:: +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + watchedDirectories:: /tests/cases/fourslash/server: *new* {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js index 857290829681e..1211fd3c7c7b5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js @@ -87,6 +87,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/index.ts 500 unde Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) @@ -190,6 +191,8 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: *new* {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: *new* + {"pollingInterval":2000} /src/index.ts: *new* {"pollingInterval":500} /tsconfig.json: *new* @@ -292,6 +295,8 @@ watchedFiles:: {"pollingInterval":500} /packages/mylib/mySubDir/myClass2.ts: {"pollingInterval":500} +/packages/mylib/mySubDir/package.json: + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js index dd0aa1ee19d45..18fa2df915314 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js @@ -84,6 +84,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/ts-node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/ts-node/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) @@ -132,6 +133,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/ts-node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -182,6 +184,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/ts-node/index.d.ts: *new* {"pollingInterval":500} +/node_modules/@types/ts-node/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: *new* {"pollingInterval":2000} @@ -270,6 +275,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/ts-node/index.d.ts: {"pollingInterval":500} +/node_modules/@types/ts-node/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js index f0f6946ce4f47..6f3727e574b3d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js @@ -78,6 +78,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 5 Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /third_party/marked/src/defaults.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /third_party/marked/src/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -171,6 +172,8 @@ watchedFiles:: {"pollingInterval":500} /third_party/marked/src/defaults.js: *new* {"pollingInterval":500} +/third_party/marked/src/package.json: *new* + {"pollingInterval":2000} /tsconfig.json: *new* {"pollingInterval":2000} @@ -292,6 +295,8 @@ watchedFiles:: {"pollingInterval":500} /third_party/marked/src/defaults.js: {"pollingInterval":500} +/third_party/marked/src/package.json: + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js index cddac51f9bbfb..b913df2b64f39 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js @@ -72,6 +72,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -110,8 +112,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} @@ -167,6 +173,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -214,10 +222,16 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/indexdef.d.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} @@ -337,12 +351,18 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tests/cases/fourslash/server/indexdef.d.ts: {"pollingInterval":500} /tests/cases/fourslash/server/indexdef.d.ts.map: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js index d7103db48ea56..751c59ebdec96 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js @@ -72,6 +72,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -110,8 +112,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} @@ -167,6 +173,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/out/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -214,10 +223,18 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/out/indexdef.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/server/out/package.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} @@ -335,12 +352,20 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/out/indexdef.d.ts: {"pollingInterval":500} /tests/cases/fourslash/server/out/indexdef.d.ts.map: *new* {"pollingInterval":500} +/tests/cases/fourslash/server/out/package.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js index e31ccdd78acb0..12788e3f88678 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js @@ -51,6 +51,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/a/dist/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -87,6 +88,8 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/node_modules/a/dist/package.json: *new* + {"pollingInterval":2000} watchedDirectoriesRecursive:: /node_modules/a/dist/node_modules/@types: *new* @@ -127,6 +130,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Search path: / Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/a/dist/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -168,6 +172,7 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /node_modules/a/dist/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -187,6 +192,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/node_modules/a/dist/package.json: + {"pollingInterval":2000} *new* + +watchedFiles *deleted*:: +/node_modules/a/dist/package.json: + {"pollingInterval":2000} watchedDirectoriesRecursive *deleted*:: /node_modules/a/dist/node_modules/@types: @@ -281,6 +292,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/a/dist/index.d.ts.map: *new* {"pollingInterval":500} +/node_modules/a/dist/package.json: + {"pollingInterval":2000} /node_modules/a/src/index.ts: *new* {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/definition01.js b/tests/baselines/reference/tsserver/fourslashServer/definition01.js index 7f4e6094beab2..ebfd1fa630dff 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/definition01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/definition01.js @@ -39,6 +39,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -80,10 +82,14 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js index a3b637a76643b..01b9e11f5142c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js @@ -164,6 +164,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /pa Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/shared/src/package.json 2000 undefined Project: /packages/server/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) @@ -211,6 +212,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/shared/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/shared/src/package.json 2000 undefined Project: /packages/shared/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/shared/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/shared/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -252,6 +254,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/client/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/client/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/shared/src/package.json 2000 undefined Project: /packages/client/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/client/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/client/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -399,6 +402,10 @@ watchedFiles:: {"pollingInterval":500} /packages/server/tsconfig.json: *new* {"pollingInterval":2000} +/packages/shared/src/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} + {"pollingInterval":2000} /packages/shared/src/referenced.ts: *new* {"pollingInterval":500} /packages/shared/tsconfig.json: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js index 1dba9ca909d0c..88b8978e80ca7 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js @@ -301,6 +301,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliar Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/index.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.production.min.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.development.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) Info seq [hh:mm:ss:mss] Files (4) @@ -379,6 +380,8 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/node_modules/react/cjs/package.json: *new* + {"pollingInterval":2000} /node_modules/react/cjs/react.development.js: *new* {"pollingInterval":500} /node_modules/react/cjs/react.production.min.js: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js index 9e77f06c90353..901163fac8395 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js @@ -109,6 +109,7 @@ Info seq [hh:mm:ss:mss] Search path: / Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/types/main.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/types/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -154,6 +155,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/foo/types/main.d.ts: *new* {"pollingInterval":500} +/node_modules/foo/types/package.json: *new* + {"pollingInterval":2000} Projects:: /dev/null/inferredProject1* (Inferred) @@ -205,6 +208,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/lib/main.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/lib/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) Info seq [hh:mm:ss:mss] Files (2) @@ -260,8 +264,12 @@ watchedFiles:: {"pollingInterval":500} /node_modules/foo/lib/main.js: *new* {"pollingInterval":500} +/node_modules/foo/lib/package.json: *new* + {"pollingInterval":2000} /node_modules/foo/types/main.d.ts: {"pollingInterval":500} +/node_modules/foo/types/package.json: + {"pollingInterval":2000} Projects:: /dev/null/auxiliaryProject1* (Auxiliary) *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js index db06214ef0559..164d949ccc43c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js @@ -226,6 +226,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/lib/main.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/lib/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) Info seq [hh:mm:ss:mss] Files (2) @@ -286,6 +287,8 @@ watchedFiles:: {"pollingInterval":2000} /node_modules/foo/lib/main.js: *new* {"pollingInterval":500} +/node_modules/foo/lib/package.json: *new* + {"pollingInterval":2000} Projects:: /dev/null/auxiliaryProject1* (Auxiliary) *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js index 30a0556625919..d5b4b2747703b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js @@ -116,6 +116,7 @@ Info seq [hh:mm:ss:mss] Search path: / Info seq [hh:mm:ss:mss] For info: /b.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/types/a.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/types/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -161,6 +162,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/foo/types/a.d.ts: *new* {"pollingInterval":500} +/node_modules/foo/types/package.json: *new* + {"pollingInterval":2000} Projects:: /dev/null/inferredProject1* (Inferred) @@ -255,6 +258,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/foo/types/a.d.ts.map: *new* {"pollingInterval":500} +/node_modules/foo/types/package.json: + {"pollingInterval":2000} Projects:: /dev/null/inferredProject1* (Inferred) diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js index 20cd07e3ecc0c..db2a8ddfb103b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js @@ -204,6 +204,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliar Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/index.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.production.min.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.development.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) Info seq [hh:mm:ss:mss] Files (4) @@ -282,6 +283,8 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/node_modules/react/cjs/package.json: *new* + {"pollingInterval":2000} /node_modules/react/cjs/react.development.js: *new* {"pollingInterval":500} /node_modules/react/cjs/react.production.min.js: *new* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js index 0cfd6fec1afe0..21c5966e76911 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js @@ -100,6 +100,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/l Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -143,6 +144,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/lodash/common/math.d.ts: *new* {"pollingInterval":500} +/node_modules/@types/lodash/common/package.json: *new* + {"pollingInterval":2000} /node_modules/@types/lodash/index.d.ts: *new* {"pollingInterval":500} /node_modules/@types/lodash/package.json: *new* @@ -192,6 +195,7 @@ Info seq [hh:mm:ss:mss] Search path: / Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -242,6 +246,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/lodash/common/math.d.ts: {"pollingInterval":500} +/node_modules/@types/lodash/common/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /node_modules/@types/lodash/index.d.ts: {"pollingInterval":500} /node_modules/@types/lodash/package.json: @@ -380,6 +387,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/lodash/common/math.d.ts: {"pollingInterval":500} +/node_modules/@types/lodash/common/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /node_modules/@types/lodash/index.d.ts: {"pollingInterval":500} /node_modules/@types/lodash/package.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js index 9a6ad5b81f691..74139fa2cc7b2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js @@ -101,6 +101,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/l Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -144,6 +145,8 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/lodash/common/math.d.ts: *new* {"pollingInterval":500} +/node_modules/@types/lodash/common/package.json: *new* + {"pollingInterval":2000} /node_modules/@types/lodash/index.d.ts: *new* {"pollingInterval":500} /node_modules/@types/lodash/package.json: *new* @@ -193,6 +196,7 @@ Info seq [hh:mm:ss:mss] Search path: / Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -243,6 +247,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/lodash/common/math.d.ts: {"pollingInterval":500} +/node_modules/@types/lodash/common/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /node_modules/@types/lodash/index.d.ts: {"pollingInterval":500} /node_modules/@types/lodash/package.json: @@ -353,6 +360,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/lodash/common/math.d.ts: {"pollingInterval":500} +/node_modules/@types/lodash/common/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /node_modules/@types/lodash/index.d.ts: {"pollingInterval":500} /node_modules/@types/lodash/package.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js index b70362e0f8aa0..de83756fae670 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js @@ -91,6 +91,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /apps/app1/tsconfi Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /apps/app1/src/package.json 2000 undefined Project: /apps/app1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /apps/app1/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) @@ -179,6 +180,8 @@ watchedFiles:: {"pollingInterval":500} /apps/app1/src/index.ts: *new* {"pollingInterval":500} +/apps/app1/src/package.json: *new* + {"pollingInterval":2000} /apps/app1/src/utils.ts: *new* {"pollingInterval":500} /apps/app1/tsconfig.json: *new* @@ -321,6 +324,8 @@ After Request watchedFiles:: /apps/app1/src/app.ts: {"pollingInterval":500} +/apps/app1/src/package.json: + {"pollingInterval":2000} /apps/app1/src/utils.ts: {"pollingInterval":500} /apps/app1/tsconfig.json: @@ -720,6 +725,8 @@ Info seq [hh:mm:ss:mss] FileName: /apps/app1/src/app.ts ProjectRootPath: undef Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json After Request watchedFiles:: +/apps/app1/src/package.json: + {"pollingInterval":2000} /apps/app1/src/utils.ts: {"pollingInterval":500} /apps/app1/tsconfig.json: @@ -1121,6 +1128,8 @@ Info seq [hh:mm:ss:mss] FileName: /shared/data.ts ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json After Request watchedFiles:: +/apps/app1/src/package.json: + {"pollingInterval":2000} /apps/app1/src/utils.ts: {"pollingInterval":500} /apps/app1/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js index 7e942f26b915f..edb3de627a445 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js @@ -270,6 +270,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/src/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (2) @@ -334,6 +335,8 @@ watchedFiles:: {"pollingInterval":2000} /packages/pkg-2/src/index.ts: *new* {"pollingInterval":500} +/packages/pkg-2/src/package.json: *new* + {"pollingInterval":2000} /packages/pkg-2/src/utils.ts: *new* {"pollingInterval":500} /packages/pkg-2/tsconfig.json: *new* @@ -568,6 +571,8 @@ watchedFiles:: {"pollingInterval":2000} /packages/pkg-2/src/index.ts: {"pollingInterval":500} +/packages/pkg-2/src/package.json: + {"pollingInterval":2000} /packages/pkg-2/src/utils.ts: {"pollingInterval":500} /packages/pkg-2/tsconfig.json: @@ -715,6 +720,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/pkg-2/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/src/package.json 2000 undefined Project: /packages/pkg-2/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/pkg-2/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/pkg-2/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) @@ -803,6 +809,9 @@ watchedFiles:: {"pollingInterval":250} /packages/pkg-2/src/index.ts: {"pollingInterval":500} +/packages/pkg-2/src/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /packages/pkg-2/src/utils.ts: {"pollingInterval":500} /packages/pkg-2/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js index cfb9d0395bf7c..b854f96bde5c2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js @@ -60,6 +60,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -103,6 +108,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -146,8 +156,23 @@ watchedFiles:: {"pollingInterval":500} /project/index.ts: *new* {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: *new* {"pollingInterval":2000} @@ -227,8 +252,23 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: {"pollingInterval":2000} @@ -428,8 +468,23 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js index 041021dd4376d..fc17a2fc4cebe 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js @@ -60,6 +60,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -103,6 +108,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -146,8 +156,23 @@ watchedFiles:: {"pollingInterval":500} /project/index.ts: *new* {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: *new* {"pollingInterval":2000} @@ -227,8 +252,23 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: {"pollingInterval":2000} @@ -396,8 +436,23 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js index 8b1933109a431..ab03f2f35aa49 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js @@ -66,6 +66,14 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/csstype@3.0.8/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) @@ -112,6 +120,14 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/csstype@3.0.8/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -158,10 +174,34 @@ watchedFiles:: {"pollingInterval":500} /project/index.ts: *new* {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts: *new* {"pollingInterval":500} +/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/csstype@3.0.8/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: *new* {"pollingInterval":2000} @@ -246,10 +286,34 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/@types+react@17.0.7/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts: {"pollingInterval":500} +/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/csstype@3.0.8/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/project/node_modules/.pnpm/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /project/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js index 2bc916334c55f..619e2926ffb4d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js @@ -67,6 +67,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 5 Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -113,6 +114,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -158,6 +160,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} +/node_modules/@types/react/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: *new* {"pollingInterval":2000} @@ -239,6 +244,9 @@ watchedFiles:: {"pollingInterval":500} /node_modules/@types/react/index.d.ts: {"pollingInterval":500} +/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js b/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js index e26ebaa610540..972de0d331ade 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js @@ -44,6 +44,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -82,8 +84,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} @@ -180,6 +186,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -229,6 +237,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -250,11 +260,21 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} +watchedFiles *deleted*:: +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + watchedDirectoriesRecursive:: /tests/cases/fourslash/node_modules: {} *new* @@ -357,6 +377,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots @@ -413,6 +435,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -436,11 +460,21 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} +watchedFiles *deleted*:: +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + watchedDirectoriesRecursive:: /tests/cases/fourslash/node_modules: {} *new* @@ -597,8 +631,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: {"pollingInterval":500} +/tests/cases/fourslash/package.json: + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js b/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js index 4b4afd0848c7e..e9fd6f142e51d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js @@ -60,6 +60,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -121,8 +123,12 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/b.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js b/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js index 3b01dfa762e9b..240db7c174992 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js +++ b/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js @@ -61,6 +61,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/c.ts 500 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -147,10 +149,14 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/b.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/c.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js b/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js index 6d63fdd8d8298..063f12eef2d2b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js @@ -39,6 +39,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -80,10 +82,14 @@ watchedFiles:: {"pollingInterval":500} /lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/tests/cases/fourslash/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js index 7e6c624059626..3ffa983a83b42 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js @@ -69,6 +69,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/d/e/file3.ts Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/@types/node/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/@types/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.cache/package.json 2000 undefined Project: /project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) @@ -223,6 +226,12 @@ After request PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} +/project/node_modules/.cache/package.json: *new* + {"pollingInterval":2000} +/project/node_modules/@types/node/package.json: *new* + {"pollingInterval":2000} +/project/node_modules/@types/package.json: *new* + {"pollingInterval":2000} FsWatches:: /project/a/file4.ts: *new* diff --git a/tests/baselines/reference/tsserver/inferredProjects/create-inferred-project.js b/tests/baselines/reference/tsserver/inferredProjects/create-inferred-project.js index 0900e4e4f83bd..a0f6db17d3cd1 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/create-inferred-project.js +++ b/tests/baselines/reference/tsserver/inferredProjects/create-inferred-project.js @@ -42,6 +42,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/module.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -80,10 +82,14 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js index c8a8a155a5687..4fc4c5fd7d010 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js +++ b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js @@ -65,6 +65,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 un Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module3/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -109,10 +111,14 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -185,8 +191,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/jsconfig.json: @@ -258,6 +268,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/module.d.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations @@ -278,6 +290,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module3/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) @@ -304,10 +318,20 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} *new* + +PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -501,10 +525,14 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js index 0bb85ce0128f3..ad3a12aca23b8 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js @@ -227,6 +227,21 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -246,6 +261,13 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== @@ -263,6 +285,13 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-s Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -278,10 +307,34 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-e Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -302,6 +355,17 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-d Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -430,8 +494,16 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/home/src/projects/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project1/node_modules: *new* {"pollingInterval":500} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/projects/project1/core.d.ts: *new* @@ -571,9 +643,90 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. @@ -581,7 +734,7 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' -Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist. @@ -608,6 +761,10 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) @@ -680,8 +837,16 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -821,6 +986,63 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. @@ -935,8 +1157,16 @@ Before running Timeout callback:: count: 2 //// [/home/src/projects/project1/core.d.ts] deleted PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: @@ -1018,11 +1248,63 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 4 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -1131,6 +1413,58 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. @@ -1149,7 +1483,62 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-d Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 5 projectProgramVersion: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -1334,9 +1723,57 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1345,6 +1782,13 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/in Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 6 projectProgramVersion: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -1413,8 +1857,16 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} /home/src/projects/project1/typeroot2: *new* {"pollingInterval":500} @@ -1565,9 +2017,57 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1608,6 +2108,10 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 7 projectProgramVersion: 5 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -1698,8 +2202,16 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /home/src/projects/project1/typeroot2: @@ -1836,13 +2348,34 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' -Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist. @@ -1869,11 +2402,50 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 8 projectProgramVersion: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -1942,8 +2514,16 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: @@ -2048,6 +2628,55 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -2063,10 +2692,62 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-w Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 9 projectProgramVersion: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js index e26c5a429395c..45f745cc45fe7 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js @@ -188,6 +188,21 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -218,6 +233,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. @@ -245,6 +264,10 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.scripthost.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. @@ -272,11 +295,32 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== @@ -308,7 +352,15 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/package.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -437,8 +489,16 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/home/src/projects/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project1/node_modules: *new* {"pollingInterval":500} +/home/src/projects/project1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: *new* + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: *new* @@ -553,6 +613,54 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. @@ -571,7 +679,58 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-d Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -765,6 +924,57 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. @@ -882,8 +1092,16 @@ Before running Timeout callback:: count: 2 //// [/home/src/projects/project1/core.d.ts] deleted PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} FsWatches:: /home/src/lib/lib.dom.d.ts: @@ -974,11 +1192,57 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 4 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -1122,9 +1386,67 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. @@ -1132,7 +1454,7 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' -Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist. @@ -1159,6 +1481,10 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 5 projectProgramVersion: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -1339,9 +1665,48 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1350,6 +1715,10 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/in Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 6 projectProgramVersion: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -1418,8 +1787,16 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} /home/src/projects/project1/typeroot2: *new* {"pollingInterval":500} @@ -1533,9 +1910,48 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1558,6 +1974,13 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-d Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots @@ -1621,8 +2044,16 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 1 PolledWatches:: +/home/src/projects/package.json: + {"pollingInterval":2000} /home/src/projects/project1/node_modules: {"pollingInterval":500} +/home/src/projects/project1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/package.json: + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /home/src/projects/project1/typeroot2: @@ -1780,6 +2211,52 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -1795,10 +2272,59 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-w Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 8 projectProgramVersion: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -1988,13 +2514,38 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' -Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist. @@ -2021,10 +2572,46 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/home/src/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json projectStateVersion: 9 projectProgramVersion: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js index 29f5be22b52c9..07ec0cde5a1fa 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js @@ -55,6 +55,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us 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: /user/username/projects 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project1/src/node_modules/minimatch/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project1/src/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project1/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project1/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project1/src/node_modules/glob/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project1/src/node_modules/path/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -81,10 +88,24 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: Creating typing installer PolledWatches:: +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project1/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/project1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project1/src/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/glob/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/minimatch/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/path/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project1/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project1/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/project1/tsconfig.json: *new* @@ -287,10 +308,24 @@ PolledWatches:: {"pollingInterval":500} /node_modules: *new* {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/project1/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/project1/package.json: + {"pollingInterval":2000} /user/username/projects/project1/src/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/glob/package.json: + {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/minimatch/package.json: + {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/project1/src/node_modules/path/package.json: + {"pollingInterval":2000} +/user/username/projects/project1/src/package.json: + {"pollingInterval":2000} /user/username/projects/project1/src/tsconfig.json: {"pollingInterval":2000} /user/username/projects/project1/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js index 546988acec8be..97b510ee16911 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js @@ -22,6 +22,8 @@ Info seq [hh:mm:ss:mss] For info: /a/b/file1.js :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/test/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -39,6 +41,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: Creating typing installer PolledWatches:: +/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} +/a/b/node_modules/test/package.json: *new* + {"pollingInterval":2000} /a/lib/lib.d.ts: *new* {"pollingInterval":500} @@ -202,6 +208,10 @@ After request PolledWatches:: /a/b/bower_components: *new* {"pollingInterval":500} +/a/b/node_modules/package.json: + {"pollingInterval":2000} +/a/b/node_modules/test/package.json: + {"pollingInterval":2000} /a/lib/lib.d.ts: {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/moduleResolution/alternateResult.js b/tests/baselines/reference/tsserver/moduleResolution/alternateResult.js index e2546c24c9f8c..02af3cb951104 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/alternateResult.js +++ b/tests/baselines/reference/tsserver/moduleResolution/alternateResult.js @@ -390,10 +390,8 @@ Info seq [hh:mm:ss:mss] Files (4) Default library for target 'es5' node_modules/foo2/index.d.ts Imported via "foo2" from file 'index.mts' with packageId 'foo2/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/foo2/package.json' does not have field "type" node_modules/@types/bar2/index.d.ts Imported via "bar2" from file 'index.mts' with packageId '@types/bar2/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/@types/bar2/package.json' does not have field "type" index.mts Part of 'files' list in tsconfig.json @@ -2142,13 +2140,10 @@ Info seq [hh:mm:ss:mss] Files (5) Default library for target 'es5' node_modules/@types/bar/index.d.ts Imported via "bar" from file 'index.mts' with packageId '@types/bar/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/@types/bar/package.json' does not have field "type" node_modules/foo2/index.d.ts Imported via "foo2" from file 'index.mts' with packageId 'foo2/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/foo2/package.json' does not have field "type" node_modules/@types/bar2/index.d.ts Imported via "bar2" from file 'index.mts' with packageId '@types/bar2/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/@types/bar2/package.json' does not have field "type" index.mts Part of 'files' list in tsconfig.json @@ -2465,16 +2460,12 @@ Info seq [hh:mm:ss:mss] Files (6) Default library for target 'es5' node_modules/foo/index.d.ts Imported via "foo" from file 'index.mts' with packageId 'foo/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/foo/package.json' does not have field "type" node_modules/@types/bar/index.d.ts Imported via "bar" from file 'index.mts' with packageId '@types/bar/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/@types/bar/package.json' does not have field "type" node_modules/foo2/index.d.ts Imported via "foo2" from file 'index.mts' with packageId 'foo2/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/foo2/package.json' does not have field "type" node_modules/@types/bar2/index.d.ts Imported via "bar2" from file 'index.mts' with packageId '@types/bar2/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/@types/bar2/package.json' does not have field "type" index.mts Part of 'files' list in tsconfig.json @@ -2858,13 +2849,10 @@ Info seq [hh:mm:ss:mss] Files (5) Default library for target 'es5' node_modules/foo/index.d.ts Imported via "foo" from file 'index.mts' with packageId 'foo/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/foo/package.json' does not have field "type" node_modules/@types/bar/index.d.ts Imported via "bar" from file 'index.mts' with packageId '@types/bar/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/@types/bar/package.json' does not have field "type" node_modules/foo2/index.d.ts Imported via "foo2" from file 'index.mts' with packageId 'foo2/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/foo2/package.json' does not have field "type" index.mts Part of 'files' list in tsconfig.json @@ -3237,10 +3225,8 @@ Info seq [hh:mm:ss:mss] Files (4) Default library for target 'es5' node_modules/foo/index.d.ts Imported via "foo" from file 'index.mts' with packageId 'foo/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/foo/package.json' does not have field "type" node_modules/@types/bar/index.d.ts Imported via "bar" from file 'index.mts' with packageId '@types/bar/index.d.ts@1.0.0' - File is CommonJS module because 'node_modules/@types/bar/package.json' does not have field "type" index.mts Part of 'files' list in tsconfig.json diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js index 817203c2d90e0..544d0992c512c 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js @@ -137,7 +137,7 @@ export * from "./subfolder"; //# sourceMappingURL=index.d.ts.map //// [/home/src/projects/project/packages/package-a/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.es2021.d.ts","../src/subfolder/index.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11228512861-export const FOO = \"bar\";","signature":"-8746013027-export declare const FOO = \"bar\";\n"},{"version":"-16576232793-export * from \"./subfolder\";","signature":"-14439737455-export * from \"./subfolder\";\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationMap":true,"esModuleInterop":true,"module":99,"outDir":"./","rootDir":"../src","target":8,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.es2021.d.ts","../src/subfolder/index.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11228512861-export const FOO = \"bar\";","signature":"-8746013027-export declare const FOO = \"bar\";\n","impliedFormat":99},{"version":"-16576232793-export * from \"./subfolder\";","signature":"-14439737455-export * from \"./subfolder\";\n","impliedFormat":99}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationMap":true,"esModuleInterop":true,"module":99,"outDir":"./","rootDir":"../src","target":8,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project/packages/package-a/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -156,27 +156,33 @@ export * from "./subfolder"; "../../../../../../../a/lib/lib.es2021.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/subfolder/index.ts": { "original": { "version": "-11228512861-export const FOO = \"bar\";", - "signature": "-8746013027-export declare const FOO = \"bar\";\n" + "signature": "-8746013027-export declare const FOO = \"bar\";\n", + "impliedFormat": 99 }, "version": "-11228512861-export const FOO = \"bar\";", - "signature": "-8746013027-export declare const FOO = \"bar\";\n" + "signature": "-8746013027-export declare const FOO = \"bar\";\n", + "impliedFormat": "esnext" }, "../src/index.ts": { "original": { "version": "-16576232793-export * from \"./subfolder\";", - "signature": "-14439737455-export * from \"./subfolder\";\n" + "signature": "-14439737455-export * from \"./subfolder\";\n", + "impliedFormat": 99 }, "version": "-16576232793-export * from \"./subfolder\";", - "signature": "-14439737455-export * from \"./subfolder\";\n" + "signature": "-14439737455-export * from \"./subfolder\";\n", + "impliedFormat": "esnext" } }, "root": [ @@ -213,7 +219,7 @@ export * from "./subfolder"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1215 + "size": 1271 } //// [/home/src/projects/project/packages/package-b/build/index.js] @@ -229,7 +235,7 @@ export {}; //# sourceMappingURL=index.d.ts.map //// [/home/src/projects/project/packages/package-b/build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.es2021.d.ts","../../package-a/build/subfolder/index.d.ts","../../package-a/build/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8746013027-export declare const FOO = \"bar\";\n","-14439737455-export * from \"./subfolder\";\n",{"version":"-5331409584-import { FOO } from \"package-a\";\nconsole.log(FOO);\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationMap":true,"esModuleInterop":true,"module":99,"outDir":"./","rootDir":"../src","target":8,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.es2021.d.ts","../../package-a/build/subfolder/index.d.ts","../../package-a/build/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-8746013027-export declare const FOO = \"bar\";\n","impliedFormat":99},{"version":"-14439737455-export * from \"./subfolder\";\n","impliedFormat":99},{"version":"-5331409584-import { FOO } from \"package-a\";\nconsole.log(FOO);\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[4],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationMap":true,"esModuleInterop":true,"module":99,"outDir":"./","rootDir":"../src","target":8,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project/packages/package-b/build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -252,27 +258,41 @@ export {}; "../../../../../../../a/lib/lib.es2021.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 + "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 + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../package-a/build/subfolder/index.d.ts": { + "original": { + "version": "-8746013027-export declare const FOO = \"bar\";\n", + "impliedFormat": 99 + }, "version": "-8746013027-export declare const FOO = \"bar\";\n", - "signature": "-8746013027-export declare const FOO = \"bar\";\n" + "signature": "-8746013027-export declare const FOO = \"bar\";\n", + "impliedFormat": "esnext" }, "../../package-a/build/index.d.ts": { + "original": { + "version": "-14439737455-export * from \"./subfolder\";\n", + "impliedFormat": 99 + }, "version": "-14439737455-export * from \"./subfolder\";\n", - "signature": "-14439737455-export * from \"./subfolder\";\n" + "signature": "-14439737455-export * from \"./subfolder\";\n", + "impliedFormat": "esnext" }, "../src/index.ts": { "original": { "version": "-5331409584-import { FOO } from \"package-a\";\nconsole.log(FOO);\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 99 }, "version": "-5331409584-import { FOO } from \"package-a\";\nconsole.log(FOO);\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "esnext" } }, "root": [ @@ -309,7 +329,7 @@ export {}; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1261 + "size": 1360 } @@ -395,6 +415,8 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/packages/package-a/t Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/tsconfig.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src 1 undefined Config: /home/src/projects/project/packages/package-a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src 1 undefined Config: /home/src/projects/project/packages/package-a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/packages/package-b/package.json'. Info seq [hh:mm:ss:mss] ======== Resolving module 'package-a' from '/home/src/projects/project/packages/package-b/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. Info seq [hh:mm:ss:mss] Resolving in CJS mode with conditions 'import', 'types'. @@ -407,8 +429,8 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/pac Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package-a.js' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package-a.jsx' does not exist. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project/packages/package-b/package-a' does not exist, skipping all lookups in it. -Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist. -Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/packages/package-b/package.json'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] Loading module 'package-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project/packages/package-b/src/node_modules' does not exist, skipping all lookups in it. @@ -422,6 +444,8 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a/build/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project/node_modules/package-a/build/index.d.ts', result '/home/src/projects/project/packages/package-a/build/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'package-a' was successfully resolved to '/home/src/projects/project/packages/package-a/build/index.d.ts' with Package ID 'package-a/build/index.d.ts@1.0.0'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/packages/package-a/package.json'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module './subfolder' from '/home/src/projects/project/packages/package-a/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Using compiler options of project reference redirect '/home/src/projects/project/packages/package-a/tsconfig.json'. @@ -438,6 +462,9 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src Info seq [hh:mm:ss:mss] ======== Module name './subfolder' was successfully resolved to '/home/src/projects/project/packages/package-a/src/subfolder/index.ts'. ======== Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/subfolder/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es2021' from '/home/src/projects/project/packages/package-b/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. @@ -474,6 +501,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2021.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations @@ -483,6 +513,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b 0 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/node_modules/@types 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/node_modules/@types 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/node_modules/@types 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Type roots @@ -504,10 +537,13 @@ Info seq [hh:mm:ss:mss] Files (4) Library 'lib.es2021.d.ts' specified in compilerOptions ../package-a/src/subfolder/index.ts Imported via "./subfolder" from file '../package-a/src/index.ts' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" ../package-a/src/index.ts Imported via "package-a" from file 'src/index.ts' with packageId 'package-a/build/index.d.ts@1.0.0' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" src/index.ts Matched by include pattern './src/**/*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 250 undefined WatchType: package.json file @@ -614,12 +650,18 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/project/packages/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-a/src/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project/packages/package-a/src/subfolder/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project/packages/package-b/node_modules: *new* {"pollingInterval":500} /home/src/projects/project/packages/package-b/node_modules/@types: *new* {"pollingInterval":500} /home/src/projects/project/packages/package-b/package-a: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-b/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.es2021.d.ts: *new* @@ -841,6 +883,18 @@ Before running Timeout callback:: count: 1 2: checkOne Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/subfolder/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'package-aX' from '/home/src/projects/project/packages/package-b/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. Info seq [hh:mm:ss:mss] Resolving in CJS mode with conditions 'import', 'types'. @@ -880,11 +934,16 @@ Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name 'package-aX' was not resolved. ======== Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es2021' from '/home/src/projects/project/packages/package-b/__lib_node_modules_lookup_lib.es2021.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -898,6 +957,7 @@ Info seq [hh:mm:ss:mss] Files (2) Library 'lib.es2021.d.ts' specified in compilerOptions src/index.ts Matched by include pattern './src/**/*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -929,8 +989,14 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/project/packages/package-b/package-aX: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-b/src/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: +/home/src/projects/project/packages/package-a/src/package.json: + {"pollingInterval":2000} +/home/src/projects/project/packages/package-a/src/subfolder/package.json: + {"pollingInterval":2000} /home/src/projects/project/packages/package-b/package-a: {"pollingInterval":500} @@ -1133,6 +1199,13 @@ Before running Timeout callback:: count: 1 3: checkOne Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'package-a' from '/home/src/projects/project/packages/package-b/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. Info seq [hh:mm:ss:mss] Resolving in CJS mode with conditions 'import', 'types'. @@ -1160,6 +1233,8 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a/build/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project/node_modules/package-a/build/index.d.ts', result '/home/src/projects/project/packages/package-a/build/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'package-a' was successfully resolved to '/home/src/projects/project/packages/package-a/build/index.d.ts' with Package ID 'package-a/build/index.d.ts@1.0.0'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module './subfolder' from '/home/src/projects/project/packages/package-a/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Using compiler options of project reference redirect '/home/src/projects/project/packages/package-a/tsconfig.json'. Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. @@ -1175,10 +1250,18 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src Info seq [hh:mm:ss:mss] ======== Module name './subfolder' was successfully resolved to '/home/src/projects/project/packages/package-a/src/subfolder/index.ts'. ======== Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/subfolder/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es2021' from '/home/src/projects/project/packages/package-b/__lib_node_modules_lookup_lib.es2021.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -1194,10 +1277,13 @@ Info seq [hh:mm:ss:mss] Files (4) Library 'lib.es2021.d.ts' specified in compilerOptions ../package-a/src/subfolder/index.ts Imported via "./subfolder" from file '../package-a/src/index.ts' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" ../package-a/src/index.ts Imported via "package-a" from file 'src/index.ts' with packageId 'package-a/build/index.d.ts@1.0.0' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" src/index.ts Matched by include pattern './src/**/*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -1223,12 +1309,18 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/project/packages/node_modules/@types: {"pollingInterval":500} +/home/src/projects/project/packages/package-a/src/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project/packages/package-a/src/subfolder/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project/packages/package-b/node_modules: {"pollingInterval":500} /home/src/projects/project/packages/package-b/node_modules/@types: {"pollingInterval":500} /home/src/projects/project/packages/package-b/package-a: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-b/src/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /home/src/projects/project/packages/package-b/package-aX: diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js index bc688d30a6f64..6ae21d0a084cd 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js @@ -197,6 +197,8 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/packages/package-a/t Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/tsconfig.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src 1 undefined Config: /home/src/projects/project/packages/package-a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src 1 undefined Config: /home/src/projects/project/packages/package-a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/packages/package-b/package.json'. Info seq [hh:mm:ss:mss] ======== Resolving module 'package-a' from '/home/src/projects/project/packages/package-b/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. Info seq [hh:mm:ss:mss] Resolving in CJS mode with conditions 'import', 'types'. @@ -209,8 +211,8 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/pac Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package-a.js' does not exist. Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package-a.jsx' does not exist. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project/packages/package-b/package-a' does not exist, skipping all lookups in it. -Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist. -Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/packages/package-b/package.json'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] Loading module 'package-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project/packages/package-b/src/node_modules' does not exist, skipping all lookups in it. @@ -224,6 +226,8 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a/build/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project/node_modules/package-a/build/index.d.ts', result '/home/src/projects/project/packages/package-a/build/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'package-a' was successfully resolved to '/home/src/projects/project/packages/package-a/build/index.d.ts' with Package ID 'package-a/build/index.d.ts@1.0.0'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/packages/package-a/package.json'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module './subfolder' from '/home/src/projects/project/packages/package-a/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Using compiler options of project reference redirect '/home/src/projects/project/packages/package-a/tsconfig.json'. @@ -240,6 +244,9 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src Info seq [hh:mm:ss:mss] ======== Module name './subfolder' was successfully resolved to '/home/src/projects/project/packages/package-a/src/subfolder/index.ts'. ======== Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/subfolder/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es2021' from '/home/src/projects/project/packages/package-b/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. @@ -276,6 +283,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2021.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations @@ -285,6 +295,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b 0 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/node_modules/@types 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/node_modules/@types 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/node_modules/@types 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Type roots @@ -306,10 +319,13 @@ Info seq [hh:mm:ss:mss] Files (4) Library 'lib.es2021.d.ts' specified in compilerOptions ../package-a/src/subfolder/index.ts Imported via "./subfolder" from file '../package-a/src/index.ts' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" ../package-a/src/index.ts Imported via "package-a" from file 'src/index.ts' with packageId 'package-a/build/index.d.ts@1.0.0' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" src/index.ts Matched by include pattern './src/**/*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 250 undefined WatchType: package.json file @@ -416,12 +432,18 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/project/packages/node_modules/@types: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-a/src/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project/packages/package-a/src/subfolder/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project/packages/package-b/node_modules: *new* {"pollingInterval":500} /home/src/projects/project/packages/package-b/node_modules/@types: *new* {"pollingInterval":500} /home/src/projects/project/packages/package-b/package-a: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-b/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.es2021.d.ts: *new* @@ -643,6 +665,18 @@ Before running Timeout callback:: count: 1 2: checkOne Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/subfolder/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'package-aX' from '/home/src/projects/project/packages/package-b/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. Info seq [hh:mm:ss:mss] Resolving in CJS mode with conditions 'import', 'types'. @@ -682,11 +716,16 @@ Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] ======== Module name 'package-aX' was not resolved. ======== Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es2021' from '/home/src/projects/project/packages/package-b/__lib_node_modules_lookup_lib.es2021.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -700,6 +739,7 @@ Info seq [hh:mm:ss:mss] Files (2) Library 'lib.es2021.d.ts' specified in compilerOptions src/index.ts Matched by include pattern './src/**/*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -731,8 +771,14 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/project/packages/package-b/package-aX: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-b/src/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: +/home/src/projects/project/packages/package-a/src/package.json: + {"pollingInterval":2000} +/home/src/projects/project/packages/package-a/src/subfolder/package.json: + {"pollingInterval":2000} /home/src/projects/project/packages/package-b/package-a: {"pollingInterval":500} @@ -935,6 +981,13 @@ Before running Timeout callback:: count: 1 3: checkOne Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-b/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'package-a' from '/home/src/projects/project/packages/package-b/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. Info seq [hh:mm:ss:mss] Resolving in CJS mode with conditions 'import', 'types'. @@ -962,6 +1015,8 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/package-a/build/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project/node_modules/package-a/build/index.d.ts', result '/home/src/projects/project/packages/package-a/build/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'package-a' was successfully resolved to '/home/src/projects/project/packages/package-a/build/index.d.ts' with Package ID 'package-a/build/index.d.ts@1.0.0'. ======== +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module './subfolder' from '/home/src/projects/project/packages/package-a/src/index.ts'. ======== Info seq [hh:mm:ss:mss] Using compiler options of project reference redirect '/home/src/projects/project/packages/package-a/tsconfig.json'. Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Bundler'. @@ -977,10 +1032,18 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src Info seq [hh:mm:ss:mss] ======== Module name './subfolder' was successfully resolved to '/home/src/projects/project/packages/package-a/src/subfolder/index.ts'. ======== Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/subfolder/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project/packages/package-a/package.json' exists according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es2021' from '/home/src/projects/project/packages/package-b/__lib_node_modules_lookup_lib.es2021.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package-a 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/subfolder/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-a/src/package.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project/packages/package-b/package-aX 1 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/packages/package-b/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -996,10 +1059,13 @@ Info seq [hh:mm:ss:mss] Files (4) Library 'lib.es2021.d.ts' specified in compilerOptions ../package-a/src/subfolder/index.ts Imported via "./subfolder" from file '../package-a/src/index.ts' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" ../package-a/src/index.ts Imported via "package-a" from file 'src/index.ts' with packageId 'package-a/build/index.d.ts@1.0.0' + File is ECMAScript module because '../package-a/package.json' has field "type" with value "module" src/index.ts Matched by include pattern './src/**/*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -1025,12 +1091,18 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/project/packages/node_modules/@types: {"pollingInterval":500} +/home/src/projects/project/packages/package-a/src/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project/packages/package-a/src/subfolder/package.json: *new* + {"pollingInterval":2000} /home/src/projects/project/packages/package-b/node_modules: {"pollingInterval":500} /home/src/projects/project/packages/package-b/node_modules/@types: {"pollingInterval":500} /home/src/projects/project/packages/package-b/package-a: *new* {"pollingInterval":500} +/home/src/projects/project/packages/package-b/src/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /home/src/projects/project/packages/package-b/package-aX: diff --git a/tests/baselines/reference/tsserver/openfile/can-open-same-file-again.js b/tests/baselines/reference/tsserver/openfile/can-open-same-file-again.js index 20afe699f5067..1a541d1b88aed 100644 --- a/tests/baselines/reference/tsserver/openfile/can-open-same-file-again.js +++ b/tests/baselines/reference/tsserver/openfile/can-open-same-file-again.js @@ -58,6 +58,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/someuser/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject 1 undefined Config: /user/someuser/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/someuser/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/src/package.json 2000 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/package.json 2000 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/someuser/projects/package.json 2000 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/node_modules/@types 1 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/node_modules/@types 1 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/node_modules/@types 1 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: Type roots @@ -152,8 +155,14 @@ After request PolledWatches:: /user/someuser/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/someuser/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/someuser/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/someuser/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/someuser/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/openfile/uses-existing-project-even-if-project-refresh-is-pending.js b/tests/baselines/reference/tsserver/openfile/uses-existing-project-even-if-project-refresh-is-pending.js index 330e80eecb468..05876d1fe5e3f 100644 --- a/tests/baselines/reference/tsserver/openfile/uses-existing-project-even-if-project-refresh-is-pending.js +++ b/tests/baselines/reference/tsserver/openfile/uses-existing-project-even-if-project-refresh-is-pending.js @@ -57,6 +57,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/someuser/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject 1 undefined Config: /user/someuser/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/someuser/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/src/package.json 2000 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/package.json 2000 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/someuser/projects/package.json 2000 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/node_modules/@types 1 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/myproject/node_modules/@types 1 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/someuser/projects/node_modules/@types 1 undefined Project: /user/someuser/projects/myproject/tsconfig.json WatchType: Type roots @@ -151,8 +154,14 @@ After request PolledWatches:: /user/someuser/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/someuser/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/someuser/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/someuser/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/someuser/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js b/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js index 21bef2cc74e3a..c79ef6c4f40c8 100644 --- a/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js +++ b/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js @@ -74,6 +74,8 @@ PluginFactory Invoke Info seq [hh:mm:ss:mss] Plugin validation succeeded Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/someFile.txt 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -179,10 +181,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/someFile.txt: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -341,10 +347,14 @@ After running Timeout callback:: count: 0 PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/someOtherFile.txt: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/someFile.txt: diff --git a/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js b/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js index b34f51f1176e6..99b89f276af72 100644 --- a/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js +++ b/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js @@ -79,6 +79,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.vue 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -184,8 +186,12 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -304,8 +310,12 @@ After running Timeout callback:: count: 0 PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/plugins/when-scriptKind-changes-for-the-external-file.js b/tests/baselines/reference/tsserver/plugins/when-scriptKind-changes-for-the-external-file.js index 6e9d27e1cdbd8..220a8fb16bab6 100644 --- a/tests/baselines/reference/tsserver/plugins/when-scriptKind-changes-for-the-external-file.js +++ b/tests/baselines/reference/tsserver/plugins/when-scriptKind-changes-for-the-external-file.js @@ -78,6 +78,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -182,10 +184,14 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js index 4c0d3c4d186f0..bc16e8877bfdc 100644 --- a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js +++ b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js @@ -78,6 +78,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@custom/plugin/package.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@custom/package.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/package.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/package.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/src/package.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/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/myproject/tsconfig.json WatchType: Type roots @@ -176,10 +182,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/users/username/projects/myproject/node_modules/@custom/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/node_modules/@custom/plugin/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js index 7f6f0ec0d37d1..455e0632f2a97 100644 --- a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js +++ b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js @@ -63,6 +63,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -159,10 +162,16 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -325,10 +334,16 @@ Before request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/node_modules: @@ -826,6 +841,9 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.jso Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@angular/core/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@angular/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -876,10 +894,22 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/node_modules/@angular/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@angular/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/node_modules: diff --git a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js index 28c1a468b3f90..51bc32e7684ea 100644 --- a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js +++ b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js @@ -63,6 +63,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -159,10 +162,16 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -328,10 +337,16 @@ Before running Timeout callback:: count: 3 PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/node_modules: @@ -868,6 +883,9 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.jso Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@angular/core/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@angular/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -918,10 +936,22 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/node_modules/@angular/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@angular/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/node_modules: diff --git a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js index eeee518602886..1786696b05d09 100644 --- a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js +++ b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js @@ -290,6 +290,12 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/utilities.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test/backend/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) @@ -439,26 +445,38 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/client/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/client/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/server/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/test/backend/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/test/backend/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/test/backend/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/test/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/test/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/test/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -671,18 +689,30 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/client/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/client/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/server/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: {"pollingInterval":2000} +/user/username/projects/myproject/test/backend/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/test/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/test/backend/jsconfig.json: @@ -751,6 +781,12 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/server/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test/backend/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -863,6 +899,10 @@ TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discove Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 4 projectProgramVersion: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (3) @@ -1003,14 +1043,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/src/client/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/client/tsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/src/server/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/src/server/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/src/server/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: @@ -1019,6 +1065,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} *new* + +PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/server/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/test/backend/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/test/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js index 021a71b870fa5..f1a8d6214dfae 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js @@ -78,6 +78,9 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -182,8 +185,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js index e792618134407..0ef8f3d1d2136 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js @@ -76,6 +76,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/blabla.json 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -179,8 +182,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* 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 f2888cb8f059b..72c2d49f358aa 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,7 +89,7 @@ declare namespace Hmi { //// [/user/username/projects/myproject/buttonClass/Source.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}","impliedFormat":1}],"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] { @@ -99,8 +99,22 @@ declare namespace Hmi { "./Source.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; }", - "./Source.ts": "-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}" + "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./Source.ts": { + "original": { + "version": "-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}", + "impliedFormat": 1 + }, + "version": "-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -117,7 +131,7 @@ declare namespace Hmi { "latestChangedDtsFile": "./Source.d.ts" }, "version": "FakeTSVersion", - "size": 833 + "size": 893 } //// [/user/username/projects/myproject/SiblingClass/Source.js] @@ -143,7 +157,7 @@ declare namespace Hmi { //// [/user/username/projects/myproject/SiblingClass/Source.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","impliedFormat":1},{"version":"-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}","impliedFormat":1}],"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] { @@ -154,9 +168,30 @@ declare namespace Hmi { "./Source.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; }", - "../buttonClass/Source.d.ts": "6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n", - "./Source.ts": "-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}" + "../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "../buttonClass/Source.d.ts": { + "original": { + "version": "6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n", + "impliedFormat": 1 + }, + "version": "6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n", + "impliedFormat": "commonjs" + }, + "./Source.ts": { + "original": { + "version": "-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}", + "impliedFormat": 1 + }, + "version": "-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -173,7 +208,7 @@ declare namespace Hmi { "latestChangedDtsFile": "./Source.d.ts" }, "version": "FakeTSVersion", - "size": 964 + "size": 1054 } diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js index c354e4e95ca39..9b2d1e5098af0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -678,12 +701,20 @@ export declare function fn3(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js index 85631fb5e14f0..c64552ba0e394 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -663,12 +686,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js index b04660b0b759d..cde873e1566fd 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -674,12 +697,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js index 283ae56e25b12..666f9c0e53b05 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -663,12 +686,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js index d3afa40ea582b..0f6eaafdaee96 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -636,12 +659,20 @@ export declare function fn3(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js index 5dd931534be82..31314a611f55b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -614,12 +637,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js index 6cd3466cba3e5..2ff42f7a6dedd 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -634,12 +657,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js index 3ca7d33fa4d41..a2dcd6696067e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -614,12 +637,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js index 924e353e01b7e..286784d8356fa 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -506,12 +529,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js index 73595c59c1bd5..2568244d35e23 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js index 148355370b40c..f633458671358 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js index 2911116512585..fbe0550175c09 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js index 6e8116c465a3b..4e4ce7adf60c2 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js index fde4b0ac687a3..c14ee42bb9e47 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js index def6db9c5a54d..fa001f92918da 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -539,12 +562,20 @@ export declare function fn2(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js index 66959166f953b..a3d553076da34 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js index c030dcc91cc36..93127f8b9430a 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js index 8d3ce7bb1357a..992fe66209144 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js index 88f467dda1672..7b1b3e7384e53 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js index d9e6c199221f8..3bd51210432e3 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js index 412a3db4c7abe..19e5a6c355459 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js index 21e4aef2fd86f..90a989b7596d7 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js index 33cd1af0ee7b0..47473b03e2d6d 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js index f99f525e21151..e21c4ee7b8abf 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js index 4b545931009c4..2c4262cb42fc3 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,6 +284,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -381,12 +396,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js index b461363a2b946..77753eed79924 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js index 12a6e704e4232..2ff95c01447d1 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js index 50971cd00e066..b94d177b2bc60 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js index 8d30724d63d20..51bbbbc357e49 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js index 82a689263eca8..ee44cebbdf6b4 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js index cc75bea636517..d68b6afa3c221 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js index 766763e4ee578..d95c36dbb8397 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js index 612983a706942..8932e5e4e4a1e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js index 7ea4e283f4747..089b53aadd1b4 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js index cce7906392229..5725e73ac901b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js index efa134f12f281..4993b8fc9888c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js index 9314dcaf9005e..6ee6f9e71f78f 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js index 3e1eda97cb4a0..60889654eb7df 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js index 3762076e9b036..db31af0030a5d 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js index a5d65736ffd42..84caf86462969 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js index 42bdacf26ef7d..c9108842bef39 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js index c42a593b68e49..f63fe5ca1f687 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js index 8d98cf7337597..579b17ef9af27 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js index 5696afdaabdca..a9cf2462e43e0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js index 41c7292716ed0..05679f41e589e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js @@ -105,6 +105,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -204,12 +208,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js index 2e139416f53a1..aacb4371f37c0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js @@ -112,6 +112,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -215,12 +219,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js index c28af695498d2..feb7dde361506 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js @@ -112,6 +112,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -215,12 +219,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js index 045d1f54a1c64..c1950237591ed 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js @@ -112,6 +112,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -215,12 +219,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js index 50a657ffe5a41..0c58ccd93fec2 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js @@ -112,6 +112,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -215,12 +219,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -283,6 +295,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -392,12 +407,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js index 75c3bc00d06ae..9239316b9c88a 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js @@ -112,6 +112,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -215,12 +219,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -283,6 +295,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -392,12 +407,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js index 0aef48b1eb4ad..375a955aa3f3c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js @@ -112,6 +112,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/fns.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/package.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Type roots @@ -215,12 +219,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -283,6 +295,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -392,12 +407,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/usage/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/usage/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js b/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js index 18077655cdbde..9e89f1fad7ca9 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 @@ -115,7 +115,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-14968179652-namespace container {\n export const myConst = 30;\n}\n","impliedFormat":1}],"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] { @@ -125,8 +125,22 @@ declare namespace container { "../../lib/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/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" + "../../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "../../lib/index.ts": { + "original": { + "version": "-14968179652-namespace container {\n export const myConst = 30;\n}\n", + "impliedFormat": 1 + }, + "version": "-14968179652-namespace container {\n export const myConst = 30;\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -143,7 +157,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 765 + "size": 825 } //// [/user/username/projects/container/built/local/exec.js] @@ -176,7 +190,7 @@ declare namespace container { //# 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"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","impliedFormat":1},{"version":"-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n","impliedFormat":1}],"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] { @@ -187,9 +201,30 @@ declare namespace container { "../../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" + "../../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./lib.d.ts": { + "original": { + "version": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", + "impliedFormat": 1 + }, + "version": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", + "impliedFormat": "commonjs" + }, + "../../compositeexec/index.ts": { + "original": { + "version": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n", + "impliedFormat": 1 + }, + "version": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -206,7 +241,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 927 + "size": 1017 } diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js index 07ec4ba5700a7..8284d06fff68e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js @@ -79,7 +79,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/shared/bld/library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../src/library/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"3524703962-export function foo() {}","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../src/library/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"3524703962-export function foo() {}","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/shared/bld/library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -92,19 +92,23 @@ export declare function foo(): void; "../../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/library/index.ts": { "original": { "version": "3524703962-export function foo() {}", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "3524703962-export function foo() {}", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -125,11 +129,11 @@ export declare function foo(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 794 + "size": 830 } //// [/user/username/projects/myproject/app/bld/program/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../../shared/bld/library/index.d.ts","../../src/program/bar.ts","../../src/program/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-9677035610-import {foo} from \"shared\";",{"version":"193491849-foo","affectsGlobalScope":true}],"root":[3,4],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,[4,[{"file":"../../src/program/index.ts","start":0,"length":3,"messageText":"Cannot find name 'foo'.","category":1,"code":2304}]],2],"affectedFilesPendingEmit":[3,4],"emitSignatures":[3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../../shared/bld/library/index.d.ts","../../src/program/bar.ts","../../src/program/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-9677035610-import {foo} from \"shared\";","impliedFormat":1},{"version":"193491849-foo","affectsGlobalScope":true,"impliedFormat":1}],"root":[3,4],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,[4,[{"file":"../../src/program/index.ts","start":0,"length":3,"messageText":"Cannot find name 'foo'.","category":1,"code":2304}]],2],"affectedFilesPendingEmit":[3,4],"emitSignatures":[3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/app/bld/program/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -149,28 +153,42 @@ export declare function foo(): void; "../../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../shared/bld/library/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../src/program/bar.ts": { + "original": { + "version": "-9677035610-import {foo} from \"shared\";", + "impliedFormat": 1 + }, "version": "-9677035610-import {foo} from \"shared\";", - "signature": "-9677035610-import {foo} from \"shared\";" + "signature": "-9677035610-import {foo} from \"shared\";", + "impliedFormat": "commonjs" }, "../../src/program/index.ts": { "original": { "version": "193491849-foo", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "193491849-foo", "signature": "193491849-foo", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -226,7 +244,7 @@ export declare function foo(): void; ] }, "version": "FakeTSVersion", - "size": 1075 + "size": 1171 } @@ -299,6 +317,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/bld/library/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/bld/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots @@ -421,18 +446,32 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/app/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/app/src/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/app/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/app/src/program/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/app/src/program/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/src/program/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/shared/bld/library/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/shared/bld/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js index 07092c3e7e8db..3c0d551afb254 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js @@ -78,7 +78,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/shared/bld/library/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../src/library/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"3524703962-export function foo() {}","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../src/library/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"3524703962-export function foo() {}","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/shared/bld/library/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,19 +91,23 @@ export declare function foo(): void; "../../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../src/library/index.ts": { "original": { "version": "3524703962-export function foo() {}", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "3524703962-export function foo() {}", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -124,11 +128,11 @@ export declare function foo(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 794 + "size": 830 } //// [/user/username/projects/myproject/app/bld/program/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../../shared/bld/library/index.d.ts","../../src/program/bar.ts","../../src/program/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-9677035610-import {foo} from \"shared\";",{"version":"193491849-foo","affectsGlobalScope":true}],"root":[3,4],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,[4,[{"file":"../../src/program/index.ts","start":0,"length":3,"messageText":"Cannot find name 'foo'.","category":1,"code":2304}]],2],"affectedFilesPendingEmit":[3,4],"emitSignatures":[3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../../a/lib/lib.d.ts","../../../shared/bld/library/index.d.ts","../../src/program/bar.ts","../../src/program/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-9677035610-import {foo} from \"shared\";","impliedFormat":1},{"version":"193491849-foo","affectsGlobalScope":true,"impliedFormat":1}],"root":[3,4],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,[4,[{"file":"../../src/program/index.ts","start":0,"length":3,"messageText":"Cannot find name 'foo'.","category":1,"code":2304}]],2],"affectedFilesPendingEmit":[3,4],"emitSignatures":[3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/app/bld/program/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -148,28 +152,42 @@ export declare function foo(): void; "../../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../../shared/bld/library/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../src/program/bar.ts": { + "original": { + "version": "-9677035610-import {foo} from \"shared\";", + "impliedFormat": 1 + }, "version": "-9677035610-import {foo} from \"shared\";", - "signature": "-9677035610-import {foo} from \"shared\";" + "signature": "-9677035610-import {foo} from \"shared\";", + "impliedFormat": "commonjs" }, "../../src/program/index.ts": { "original": { "version": "193491849-foo", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "193491849-foo", "signature": "193491849-foo", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" } }, "root": [ @@ -225,7 +243,7 @@ export declare function foo(): void; ] }, "version": "FakeTSVersion", - "size": 1075 + "size": 1171 } @@ -297,6 +315,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/src/library/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/src/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots @@ -418,18 +443,32 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/app/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/app/src/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/app/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/app/src/program/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/app/src/program/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/src/program/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/shared/src/library/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/shared/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js index 64e713fe87e1c..971a3afa062d8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js @@ -135,6 +135,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/src/library/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/src/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots @@ -256,18 +263,32 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/app/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/app/src/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/app/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/app/src/program/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/app/src/program/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/app/src/program/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/shared/src/library/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/shared/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* 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 5011c85fc8a50..e1fff9ca2e999 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 @@ -112,7 +112,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-14968179652-namespace container {\n export const myConst = 30;\n}\n","impliedFormat":1}],"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] { @@ -122,8 +122,22 @@ declare namespace container { "../../lib/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/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" + "../../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "../../lib/index.ts": { + "original": { + "version": "-14968179652-namespace container {\n export const myConst = 30;\n}\n", + "impliedFormat": 1 + }, + "version": "-14968179652-namespace container {\n export const myConst = 30;\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -140,7 +154,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 765 + "size": 825 } //// [/user/username/projects/container/built/local/exec.js] @@ -173,7 +187,7 @@ declare namespace container { //# 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"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","impliedFormat":1},{"version":"-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n","impliedFormat":1}],"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] { @@ -184,9 +198,30 @@ declare namespace container { "../../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" + "../../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./lib.d.ts": { + "original": { + "version": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", + "impliedFormat": 1 + }, + "version": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", + "impliedFormat": "commonjs" + }, + "../../compositeexec/index.ts": { + "original": { + "version": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n", + "impliedFormat": 1 + }, + "version": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -203,7 +238,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 927 + "size": 1017 } diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js index c30b183307a08..382fcf346051e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js @@ -305,6 +305,10 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -411,8 +415,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -574,8 +586,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -664,8 +684,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -775,6 +803,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -797,8 +829,16 @@ After request PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -986,6 +1026,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1053,8 +1097,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1231,6 +1283,10 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1247,6 +1303,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1362,6 +1422,48 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} *new* + +PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-indirect1.json: + {} +/user/username/projects/myproject/tsconfig-indirect2.json: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js index 28dc244928f21..56bbadf2f141e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js @@ -259,6 +259,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -366,10 +371,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -537,10 +552,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -631,10 +656,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -749,6 +784,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -770,10 +810,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -944,6 +994,11 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1011,10 +1066,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1176,6 +1241,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1192,6 +1262,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1309,6 +1384,52 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} *new* + +PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/indirect1/main.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-indirect1.json: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js index 3acc90b06b4df..e5c37d17c9db7 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js @@ -230,6 +230,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -273,18 +276,24 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -386,18 +395,24 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -479,14 +494,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/jsconfig.json: @@ -564,14 +585,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -644,6 +671,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -669,14 +699,20 @@ PolledWatches *deleted*:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -809,6 +845,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots @@ -858,18 +897,24 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1002,6 +1047,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots @@ -1047,6 +1095,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots @@ -1115,28 +1166,40 @@ PolledWatches:: {"pollingInterval":500} *new* /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/src/jsconfig.json: {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: {"pollingInterval":500} *new* /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/src/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: /user/username/projects/myproject/node_modules: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/src/node_modules: {"pollingInterval":500} /user/username/projects/myproject/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js b/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js index d9ab6ffcde09e..bb437b40791af 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 @@ -112,7 +112,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-14968179652-namespace container {\n export const myConst = 30;\n}\n","impliedFormat":1}],"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] { @@ -122,8 +122,22 @@ declare namespace container { "../../lib/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/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" + "../../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "../../lib/index.ts": { + "original": { + "version": "-14968179652-namespace container {\n export const myConst = 30;\n}\n", + "impliedFormat": 1 + }, + "version": "-14968179652-namespace container {\n export const myConst = 30;\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -140,7 +154,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 765 + "size": 825 } //// [/user/username/projects/container/built/local/exec.js] @@ -173,7 +187,7 @@ declare namespace container { //# 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"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","impliedFormat":1},{"version":"-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n","impliedFormat":1}],"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] { @@ -184,9 +198,30 @@ declare namespace container { "../../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" + "../../../../../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": 1 + }, + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "impliedFormat": "commonjs" + }, + "./lib.d.ts": { + "original": { + "version": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", + "impliedFormat": 1 + }, + "version": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", + "impliedFormat": "commonjs" + }, + "../../compositeexec/index.ts": { + "original": { + "version": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n", + "impliedFormat": 1 + }, + "version": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n", + "impliedFormat": "commonjs" + } }, "root": [ [ @@ -203,7 +238,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 927 + "size": 1017 } diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index e5b64cf5ecb39..fc191a7c81d94 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -107,6 +107,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +263,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -320,6 +335,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -478,12 +496,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: @@ -630,14 +658,24 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/lib/index.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 2c77987b72c4b..f155c4bb4cc63 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -119,6 +119,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +275,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -332,6 +347,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -490,12 +508,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: @@ -694,12 +722,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index 1622bd92c5083..d66a1dfe3c90b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -107,6 +107,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +262,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -319,6 +331,9 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -477,12 +492,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index fe159a50cfcab..19a54d94704b0 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -119,6 +119,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +274,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -331,6 +343,9 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -489,12 +504,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 539158032612e..07c162c516b53 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -107,6 +107,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +263,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -320,6 +335,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -478,12 +496,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: @@ -630,14 +658,24 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/lib/index.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index e14a9351b7c6f..a54fc1acc75a5 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -119,6 +119,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +275,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -332,6 +347,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -490,12 +508,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: @@ -694,12 +722,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index f4ca99d24d078..496c1f51a91c6 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -107,6 +107,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +262,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -319,6 +331,9 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -477,12 +492,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index 88e1f1eccb628..24db9ca3ab9bd 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -119,6 +119,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +274,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -331,6 +343,9 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -489,12 +504,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 685fca8e0a329..f1ddb587a24fd 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -107,6 +107,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +263,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -393,12 +408,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/lib/index.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index dad9aa2054397..fb321e9e03ecd 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -119,6 +119,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +275,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -410,10 +425,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index c45424db9fa57..6f255e9611cd9 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -107,6 +107,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +262,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index 8e8f874ffac9f..a858dfa3645fe 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -119,6 +119,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +274,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 3a73dfc42999b..0dc3b93cd025e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -107,6 +107,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +263,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -393,12 +408,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/lib/index.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 6d2ab2f864017..70e0d2bf87e43 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -119,6 +119,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/lib/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +275,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -337,6 +352,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -548,12 +566,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/lib/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index 738281468a976..f1bdb26333273 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -107,6 +107,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -258,10 +262,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -323,6 +335,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -534,12 +549,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index 1cf105d6d2271..1dc58f76d4c01 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -119,6 +119,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/node_modules/@types 1 undefined Project: /user/username/projects/myproject/a/tsconfig.json WatchType: Type roots @@ -270,10 +274,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: *new* @@ -335,6 +347,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b 0 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/node_modules/@types 1 undefined Project: /user/username/projects/myproject/b/tsconfig.json WatchType: Type roots @@ -546,12 +561,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /user/username/projects/myproject/a/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js index f58e52d523ad5..db71813f5a17c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js @@ -177,6 +177,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/a 1 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/a 1 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/a/package.json 2000 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/b/package.json 2000 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/b/node_modules/@types 1 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/b/node_modules/@types 1 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/b/tsconfig.json WatchType: Type roots @@ -289,10 +293,18 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -364,6 +376,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/a/package.json 2000 undefined Project: /user/username/projects/solution/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/a/node_modules/@types 1 undefined Project: /user/username/projects/solution/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/a/node_modules/@types 1 undefined Project: /user/username/projects/solution/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/a/tsconfig.json WatchType: Type roots @@ -596,6 +611,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/a 1 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/b 1 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/b 1 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/a/package.json 2000 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/b/package.json 2000 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/c/package.json 2000 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/c/node_modules/@types 1 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/c/node_modules/@types 1 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/c/tsconfig.json WatchType: Type roots @@ -695,6 +715,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/c 1 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/b 1 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/b 1 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/a/package.json 2000 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/b/package.json 2000 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/c/package.json 2000 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/d/package.json 2000 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/d/node_modules/@types 1 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/d/node_modules/@types 1 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/d/tsconfig.json WatchType: Type roots @@ -932,16 +958,28 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/solution/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/a/package.json: + {"pollingInterval":2000} /user/username/projects/solution/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/b/package.json: + {"pollingInterval":2000} /user/username/projects/solution/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/d/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/d/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js index cee7c76f20889..647ff61c2c59b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js @@ -88,7 +88,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,27 +102,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -149,7 +155,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -166,7 +172,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/index.d.ts","../../node_modules/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/index.d.ts","../../node_modules/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,27 +193,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -236,7 +256,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1041 + "size": 1137 } @@ -312,6 +332,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -423,16 +449,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js index e9d527b49067b..eb199d2739b6b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js @@ -86,7 +86,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -100,27 +100,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -147,7 +153,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -164,7 +170,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -185,27 +191,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "3563314629-import { foo } from 'b';\nimport { bar } from 'b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -234,7 +254,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1009 + "size": 1105 } @@ -308,6 +328,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -418,16 +444,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js index 6f1143b5c3d17..b0b9969cb596f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js @@ -138,6 +138,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -249,16 +255,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js index 8e3caf8c5d068..fbc39bd88485b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js @@ -134,6 +134,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -244,16 +250,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index 4130deac1f42d..547ad8880ac92 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -88,7 +88,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,27 +102,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -149,7 +155,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -166,7 +172,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/index.d.ts","../../node_modules/@issue/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/index.d.ts","../../node_modules/@issue/b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,27 +193,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -236,7 +256,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1069 + "size": 1165 } @@ -312,6 +332,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -423,16 +449,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js index b49850b46dd56..4d0a272a7849c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js @@ -86,7 +86,7 @@ export declare function foo(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/bar.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -100,27 +100,33 @@ export declare function foo(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/bar.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -147,7 +153,7 @@ export declare function foo(): void; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 940 + "size": 994 } //// [/user/username/projects/myproject/packages/A/lib/index.js] @@ -164,7 +170,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/index.d.ts","../b/lib/bar.d.ts","./src/index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -185,27 +191,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/index.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/index.ts": { "original": { "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "8545527381-import { foo } from '@issue/b';\nimport { bar } from '@issue/b/lib/bar';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -234,7 +254,7 @@ export {}; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1023 + "size": 1119 } @@ -308,6 +328,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -418,16 +444,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index d4ddd06ee3d58..4eb76d2d4c04b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -138,6 +138,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -249,16 +255,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js index 6ffdca6dcee32..9cd7dc91883ae 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js @@ -134,6 +134,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -244,16 +250,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js index a947c946d2c74..acdaf567aea9d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js @@ -85,7 +85,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,27 +99,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -146,7 +152,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -163,7 +169,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/foo.d.ts","../../node_modules/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/b/lib/foo.d.ts","../../node_modules/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -184,27 +190,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -233,7 +253,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1054 + "size": 1150 } @@ -309,6 +329,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -420,16 +447,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js index 29b45194b83d8..1f1569a041c6b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js @@ -83,7 +83,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,27 +97,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -144,7 +150,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -161,7 +167,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,27 +188,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "14700910833-import { foo } from 'b/lib/foo';\nimport { bar } from 'b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -231,7 +251,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1022 + "size": 1118 } @@ -305,6 +325,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -415,16 +442,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js index 8a9fa665cf04a..81df34cd8a6d0 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js @@ -135,6 +135,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -246,16 +253,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js index 8f8e183e70845..8488b70da0c44 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js @@ -131,6 +131,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -241,16 +248,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index 8eda457249780..0614d59ca8b9a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -85,7 +85,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,27 +99,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -146,7 +152,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -163,7 +169,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/foo.d.ts","../../node_modules/@issue/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../node_modules/@issue/b/lib/foo.d.ts","../../node_modules/@issue/b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -184,27 +190,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../../node_modules/@issue/b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -233,7 +253,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1083 + "size": 1179 } @@ -309,6 +329,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -420,16 +447,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js index 815f609abc1e4..f0654e6afa779 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js @@ -83,7 +83,7 @@ export declare function bar(): void; //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n"},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./src/foo.ts","./src/bar/foo.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"4646078106-export function foo() { }","signature":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"1045484683-export function bar() { }","signature":"-2904461644-export declare function bar(): void;\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"referencedMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./lib/bar/foo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/B/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,27 +97,33 @@ export declare function bar(): void; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./src/foo.ts": { "original": { "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 }, "version": "4646078106-export function foo() { }", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "./src/bar/foo.ts": { "original": { "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 }, "version": "1045484683-export function bar() { }", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -144,7 +150,7 @@ export declare function bar(): void; "latestChangedDtsFile": "./lib/bar/foo.d.ts" }, "version": "FakeTSVersion", - "size": 944 + "size": 998 } //// [/user/username/projects/myproject/packages/A/lib/test.js] @@ -161,7 +167,7 @@ export {}; //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-5677608893-export declare function foo(): void;\n","-2904461644-export declare function bar(): void;\n",{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../b/lib/foo.d.ts","../b/lib/bar/foo.d.ts","./src/test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5677608893-export declare function foo(): void;\n","impliedFormat":1},{"version":"-2904461644-export declare function bar(): void;\n","impliedFormat":1},{"version":"-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[4],"options":{"composite":true,"outDir":"./lib","rootDir":"./src"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,4,3,2],"latestChangedDtsFile":"./lib/test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/packages/A/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,27 +188,41 @@ export {}; "../../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../b/lib/foo.d.ts": { + "original": { + "version": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": 1 + }, "version": "-5677608893-export declare function foo(): void;\n", - "signature": "-5677608893-export declare function foo(): void;\n" + "signature": "-5677608893-export declare function foo(): void;\n", + "impliedFormat": "commonjs" }, "../b/lib/bar/foo.d.ts": { + "original": { + "version": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": 1 + }, "version": "-2904461644-export declare function bar(): void;\n", - "signature": "-2904461644-export declare function bar(): void;\n" + "signature": "-2904461644-export declare function bar(): void;\n", + "impliedFormat": "commonjs" }, "./src/test.ts": { "original": { "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-20350237855-import { foo } from '@issue/b/lib/foo';\nimport { bar } from '@issue/b/lib/bar/foo';\nfoo();\nbar();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -231,7 +251,7 @@ export {}; "latestChangedDtsFile": "./lib/test.d.ts" }, "version": "FakeTSVersion", - "size": 1037 + "size": 1133 } @@ -305,6 +325,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -415,16 +442,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index 486112681347e..b5ae6f8a23851 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -135,6 +135,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -246,16 +253,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js index db872ea3e9d69..a62a8ef2aace8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js @@ -131,6 +131,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/src/bar/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots @@ -241,16 +248,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/A/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/A/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/A/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/A/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/B/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js index 20f7c5a0f7c37..e49eb718d5bc2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js @@ -216,6 +216,10 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -322,8 +326,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -564,8 +576,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -650,8 +670,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -755,6 +783,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -777,8 +809,16 @@ After request PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -921,6 +961,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -988,8 +1032,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1072,8 +1124,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1168,8 +1228,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1308,6 +1376,10 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1324,6 +1396,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1441,6 +1517,44 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} *new* + +PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: @@ -1553,8 +1667,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1657,8 +1779,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1758,8 +1888,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1869,6 +2007,12 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/main.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots @@ -1989,6 +2133,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2024,10 +2172,28 @@ After request PolledWatches:: /user/username/projects/myproject/indirect3/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2213,6 +2379,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2370,10 +2540,26 @@ After request PolledWatches:: /user/username/projects/myproject/indirect3/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js index ed644acb27e18..46f552746dd65 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js @@ -303,6 +303,10 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -409,8 +413,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -655,8 +667,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,8 +765,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -856,6 +884,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -878,8 +910,16 @@ After request PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1066,6 +1106,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1133,8 +1177,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1221,8 +1273,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1321,8 +1381,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1503,6 +1571,10 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1519,6 +1591,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1636,6 +1712,48 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} *new* + +PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-indirect1.json: + {} +/user/username/projects/myproject/tsconfig-indirect2.json: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: @@ -1677,6 +1795,11 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1767,6 +1890,11 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots @@ -2008,10 +2136,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2158,10 +2298,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2305,10 +2457,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2456,6 +2620,12 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/main.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots @@ -2573,6 +2743,10 @@ Info seq [hh:mm:ss:mss] Files (3) Matched by include pattern './src/**/*' in 'tsconfig-src.json' Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2597,6 +2771,11 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect1.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -2624,6 +2803,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect2.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots @@ -2661,10 +2845,32 @@ After request PolledWatches:: /user/username/projects/myproject/indirect3/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2930,6 +3136,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2982,6 +3192,11 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -3027,6 +3242,11 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots @@ -3269,12 +3489,32 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/indirect3/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js b/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js index 6f5346b37152a..b3ec65669cb88 100644 --- a/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js @@ -130,6 +130,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project 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: /user/username/projects/myproject/dist 1 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dist 1 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dist/compositeb/package.json 2000 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dist/package.json 2000 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositea/package.json 2000 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositea/node_modules/@types 1 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositea/node_modules/@types 1 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/compositea/tsconfig.json WatchType: Type roots @@ -240,10 +245,20 @@ After request PolledWatches:: /user/username/projects/myproject/compositea/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/compositea/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/dist/compositeb/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/dist/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -358,6 +373,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositeb 1 undefined Config: /user/username/projects/myproject/compositeb/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositeb 1 undefined Config: /user/username/projects/myproject/compositeb/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositeb/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositeb/package.json 2000 undefined Project: /user/username/projects/myproject/compositec/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/compositec/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/compositec/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositec/package.json 2000 undefined Project: /user/username/projects/myproject/compositec/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositec/node_modules/@types 1 undefined Project: /user/username/projects/myproject/compositec/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/compositec/node_modules/@types 1 undefined Project: /user/username/projects/myproject/compositec/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/compositec/tsconfig.json WatchType: Type roots @@ -471,12 +490,26 @@ After request PolledWatches:: /user/username/projects/myproject/compositea/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/compositea/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/compositeb/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/compositec/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/compositec/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/dist/compositeb/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/dist/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js index e7e3804e2d06f..6d74accb21606 100644 --- a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js +++ b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js @@ -103,7 +103,7 @@ export {}; //# sourceMappingURL=keyboard.test.d.ts.map //// [/user/username/projects/project/out/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../src/common/input/keyboard.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }","signature":"-14411843863-export declare function evaluateKeyboardEvent(): void;\n"},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"declarationMap":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./input/keyboard.test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../src/common/input/keyboard.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }","signature":"-14411843863-export declare function evaluateKeyboardEvent(): void;\n","impliedFormat":1},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declarationMap":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./input/keyboard.test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/project/out/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -122,27 +122,33 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/common/input/keyboard.ts": { "original": { "version": "-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }", - "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n" + "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": 1 }, "version": "-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }", - "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n" + "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": "commonjs" }, "../src/common/input/keyboard.test.ts": { "original": { "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -173,7 +179,7 @@ export {}; "latestChangedDtsFile": "./input/keyboard.test.d.ts" }, "version": "FakeTSVersion", - "size": 1233 + "size": 1287 } //// [/user/username/projects/project/out/terminal.js] @@ -209,7 +215,7 @@ export {}; //# sourceMappingURL=keyboard.test.d.ts.map //// [/user/username/projects/project/out/src.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./input/keyboard.d.ts","../src/terminal.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-14411843863-export declare function evaluateKeyboardEvent(): void;\n",{"version":"-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n"},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outDir":"./","tsBuildInfoFile":"./src.tsconfig.tsbuildinfo"},"fileIdsList":[[2]],"referencedMap":[[4,1],[3,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./common/input/keyboard.test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./input/keyboard.d.ts","../src/terminal.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14411843863-export declare function evaluateKeyboardEvent(): void;\n","impliedFormat":1},{"version":"-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outDir":"./","tsBuildInfoFile":"./src.tsconfig.tsbuildinfo"},"fileIdsList":[[2]],"referencedMap":[[4,1],[3,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./common/input/keyboard.test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/project/out/src.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -229,31 +235,42 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./input/keyboard.d.ts": { + "original": { + "version": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": 1 + }, "version": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", - "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n" + "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": "commonjs" }, "../src/terminal.ts": { "original": { "version": "-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/common/input/keyboard.test.ts": { "original": { "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -292,7 +309,7 @@ export {}; "latestChangedDtsFile": "./common/input/keyboard.test.d.ts" }, "version": "FakeTSVersion", - "size": 1327 + "size": 1411 } @@ -338,6 +355,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/input/keyboard.test.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/project/src/common/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/input/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/node_modules/@types 1 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/node_modules/@types 1 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/node_modules/@types 1 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: Type roots @@ -456,12 +478,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/project/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/src/common/input/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project/src/common/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/project/src/common/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/project/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -557,6 +589,13 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src 1 undefined Config: /user/username/projects/project/src/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/project/src/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/out/input/keyboard.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/out/input/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/out/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/input/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/node_modules/@types 1 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/node_modules/@types 1 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/node_modules/@types 1 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: Type roots @@ -678,12 +717,26 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/project/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/out/input/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/out/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/package.json: + {"pollingInterval":2000} +/user/username/projects/project/src/common/input/package.json: + {"pollingInterval":2000} /user/username/projects/project/src/common/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/src/common/package.json: + {"pollingInterval":2000} /user/username/projects/project/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -864,12 +917,26 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/project/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/out/input/package.json: + {"pollingInterval":2000} +/user/username/projects/project/out/package.json: + {"pollingInterval":2000} +/user/username/projects/project/package.json: + {"pollingInterval":2000} +/user/username/projects/project/src/common/input/package.json: + {"pollingInterval":2000} /user/username/projects/project/src/common/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/src/common/package.json: + {"pollingInterval":2000} /user/username/projects/project/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js index 1ad7d3cf5df3f..6660bab01308c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js @@ -103,7 +103,7 @@ export {}; //# sourceMappingURL=keyboard.test.d.ts.map //// [/user/username/projects/project/out/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../src/common/input/keyboard.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }","signature":"-14411843863-export declare function evaluateKeyboardEvent(): void;\n"},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"declarationMap":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./input/keyboard.test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../src/common/input/keyboard.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }","signature":"-14411843863-export declare function evaluateKeyboardEvent(): void;\n","impliedFormat":1},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[2,3],"options":{"composite":true,"declarationMap":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./input/keyboard.test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/project/out/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -122,27 +122,33 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../src/common/input/keyboard.ts": { "original": { "version": "-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }", - "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n" + "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": 1 }, "version": "-15187822601-function bar() { return \"just a random function so .d.ts location doesnt match\"; }\nexport function evaluateKeyboardEvent() { }", - "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n" + "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": "commonjs" }, "../src/common/input/keyboard.test.ts": { "original": { "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -173,7 +179,7 @@ export {}; "latestChangedDtsFile": "./input/keyboard.test.d.ts" }, "version": "FakeTSVersion", - "size": 1233 + "size": 1287 } //// [/user/username/projects/project/out/terminal.js] @@ -209,7 +215,7 @@ export {}; //# sourceMappingURL=keyboard.test.d.ts.map //// [/user/username/projects/project/out/src.tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./input/keyboard.d.ts","../src/terminal.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-14411843863-export declare function evaluateKeyboardEvent(): void;\n",{"version":"-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n"},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outDir":"./","tsBuildInfoFile":"./src.tsconfig.tsbuildinfo"},"fileIdsList":[[2]],"referencedMap":[[4,1],[3,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./common/input/keyboard.test.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./input/keyboard.d.ts","../src/terminal.ts","../src/common/input/keyboard.test.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-14411843863-export declare function evaluateKeyboardEvent(): void;\n","impliedFormat":1},{"version":"-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n","impliedFormat":1},{"version":"-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outDir":"./","tsBuildInfoFile":"./src.tsconfig.tsbuildinfo"},"fileIdsList":[[2]],"referencedMap":[[4,1],[3,1]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./common/input/keyboard.test.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/project/out/src.tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -229,31 +235,42 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./input/keyboard.d.ts": { + "original": { + "version": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": 1 + }, "version": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", - "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n" + "signature": "-14411843863-export declare function evaluateKeyboardEvent(): void;\n", + "impliedFormat": "commonjs" }, "../src/terminal.ts": { "original": { "version": "-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-9992649704-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction foo() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" }, "../src/common/input/keyboard.test.ts": { "original": { "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-7258701250-import { evaluateKeyboardEvent } from 'common/input/keyboard';\nfunction testEvaluateKeyboardEvent() {\n return evaluateKeyboardEvent();\n}\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -292,7 +309,7 @@ export {}; "latestChangedDtsFile": "./common/input/keyboard.test.d.ts" }, "version": "FakeTSVersion", - "size": 1327 + "size": 1411 } @@ -338,6 +355,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/input/keyboard.test.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/project/src/common/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/input/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/node_modules/@types 1 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/node_modules/@types 1 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/node_modules/@types 1 undefined Project: /user/username/projects/project/src/common/tsconfig.json WatchType: Type roots @@ -456,12 +478,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/project/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/project/src/common/input/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project/src/common/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/project/src/common/package.json: *new* + {"pollingInterval":2000} /user/username/projects/project/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/project/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -556,6 +588,11 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/project/src/tsconfig.js Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src 1 undefined Config: /user/username/projects/project/src/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src 1 undefined Config: /user/username/projects/project/src/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/project/src/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/input/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/common/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/src/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/node_modules/@types 1 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/src/node_modules/@types 1 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/node_modules/@types 1 undefined Project: /user/username/projects/project/src/tsconfig.json WatchType: Type roots @@ -676,12 +713,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/project/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/package.json: + {"pollingInterval":2000} +/user/username/projects/project/src/common/input/package.json: + {"pollingInterval":2000} /user/username/projects/project/src/common/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/src/common/package.json: + {"pollingInterval":2000} /user/username/projects/project/src/node_modules/@types: {"pollingInterval":500} +/user/username/projects/project/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js index 4fc69c7964297..eac9aafdd38fa 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js @@ -250,6 +250,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -341,6 +347,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -445,10 +455,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -634,10 +656,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -739,10 +773,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -858,6 +904,12 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect1.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect2.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -882,6 +934,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -904,10 +960,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1086,6 +1154,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-indi Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect2.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1133,6 +1207,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1198,10 +1276,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1291,6 +1381,12 @@ Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1374,6 +1470,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-indi } ] } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1420,6 +1522,10 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1436,6 +1542,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1551,6 +1661,52 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/indirect1/main.ts: + {} +/user/username/projects/myproject/own/main.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-indirect1.json: + {} +/user/username/projects/myproject/tsconfig-indirect2.json: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js index 8431512847f22..6cad2753a8552 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js @@ -203,6 +203,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -294,6 +300,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -401,10 +412,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -590,10 +613,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -694,10 +729,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -810,6 +857,12 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -837,6 +890,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -859,10 +917,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1018,6 +1088,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1065,6 +1141,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1132,10 +1213,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1225,6 +1318,12 @@ Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1287,6 +1386,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-src. "configFilePath": "/user/username/projects/myproject/tsconfig-src.json" } } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1333,6 +1438,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1349,6 +1459,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1466,6 +1581,48 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/indirect1/main.ts: + {} +/user/username/projects/myproject/own/main.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-indirect1.json: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js index d76fae1c51241..4e358e57dece3 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js @@ -163,6 +163,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -267,8 +272,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -420,8 +435,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -504,8 +529,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -602,6 +637,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -625,8 +665,18 @@ After request PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -746,6 +796,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -811,8 +866,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -881,6 +946,11 @@ Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -926,6 +996,11 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-src. "configFilePath": "/user/username/projects/myproject/tsconfig-src.json" } } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1034,14 +1109,34 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js index 55cbe0ff15b11..36a8177a31b32 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js @@ -161,6 +161,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -249,6 +254,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -355,8 +364,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -613,8 +632,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -708,8 +737,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -810,6 +849,11 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -834,6 +878,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -857,8 +905,18 @@ After request PolledWatches *deleted*:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -985,6 +1043,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1029,6 +1092,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1096,8 +1163,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1189,8 +1266,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1294,8 +1381,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1378,6 +1475,11 @@ Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/myproject/tsconfig-s Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1422,6 +1524,11 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-src. "configFilePath": "/user/username/projects/myproject/tsconfig-src.json" } } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1465,6 +1572,10 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1481,6 +1592,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1598,6 +1713,42 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/own/main.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: @@ -1751,8 +1902,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1867,8 +2028,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1980,8 +2151,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2103,6 +2284,12 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/main.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots @@ -2211,6 +2398,11 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -2235,6 +2427,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2271,10 +2467,30 @@ After request PolledWatches:: /user/username/projects/myproject/indirect3/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2447,6 +2663,11 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-src. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -2491,6 +2712,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2695,10 +2920,28 @@ After request PolledWatches:: /user/username/projects/myproject/indirect3/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js index e8724e3f669e6..439f05faa5fe8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js @@ -248,6 +248,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -339,6 +345,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -443,10 +453,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -715,10 +737,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -820,10 +854,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -939,6 +985,12 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect1.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect2.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -963,6 +1015,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -985,10 +1041,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1166,6 +1234,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-indi Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect2.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1213,6 +1287,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1278,10 +1356,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1381,10 +1471,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1496,10 +1598,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1594,6 +1708,12 @@ Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/myproject/tsconfig-s Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1676,6 +1796,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-indi } ] } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -1722,6 +1848,10 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [] } } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1738,6 +1868,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1855,6 +1989,52 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/indirect1/main.ts: + {} +/user/username/projects/myproject/own/main.ts: + {} +/user/username/projects/myproject/src/helpers/functions.ts: + {} +/user/username/projects/myproject/tsconfig-indirect1.json: + {} +/user/username/projects/myproject/tsconfig-indirect2.json: + {} +/user/username/projects/myproject/tsconfig-src.json: + {} +/user/username/projects/myproject/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {} + Timeout callback:: count: 0 Projects:: @@ -1902,6 +2082,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -2001,6 +2186,11 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots @@ -2237,10 +2427,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2402,10 +2606,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2564,10 +2782,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2730,6 +2962,12 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/main.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/package.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Type roots @@ -2841,6 +3079,12 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -2862,6 +3106,10 @@ Info seq [hh:mm:ss:mss] Files (3) Matched by include pattern './src/**/*' in 'tsconfig-src.json' Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2886,6 +3134,11 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect1.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -2913,6 +3166,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig-src.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-src.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect2.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/indirect2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots @@ -2951,10 +3209,34 @@ After request PolledWatches:: /user/username/projects/myproject/indirect3/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/indirect1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/own/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -3211,6 +3493,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig-indi } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig-indirect2.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/own/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -3258,6 +3546,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -3321,6 +3613,11 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -3382,6 +3679,11 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect2.json WatchType: Type roots @@ -3613,12 +3915,34 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/indirect1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/indirect2/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/indirect3/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/indirect3/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/own/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/helpers/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/target/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/helpers/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/target/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js index 0befd39177b0d..d1e269fc80375 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js @@ -146,6 +146,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/index.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots @@ -259,10 +265,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/api/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -336,6 +354,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/shared/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots @@ -545,6 +567,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots @@ -689,14 +717,30 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/api/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: + {"pollingInterval":2000} /user/username/projects/solution/app/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/package.json: + {"pollingInterval":2000} /user/username/projects/solution/shared/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/shared/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js index 7d48b694040d3..7c70d9b640c51 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js @@ -147,6 +147,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/index.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots @@ -260,10 +266,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/api/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -337,6 +355,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/shared/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots @@ -463,12 +485,24 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/api/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/package.json: + {"pollingInterval":2000} /user/username/projects/solution/shared/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/shared/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js index fc6ce63c751b7..8d62e4804b88f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js @@ -146,6 +146,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/index.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots @@ -259,10 +265,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/api/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -336,6 +354,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/shared/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots @@ -545,6 +567,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots @@ -689,14 +717,30 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/api/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: + {"pollingInterval":2000} /user/username/projects/solution/app/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/package.json: + {"pollingInterval":2000} /user/username/projects/solution/shared/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/shared/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js index 22cb29deb98db..dd59365417a3a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js @@ -148,6 +148,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/index.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots @@ -261,10 +267,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/api/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -338,6 +356,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/shared/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots @@ -547,6 +569,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots @@ -691,14 +719,30 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/api/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: + {"pollingInterval":2000} /user/username/projects/solution/app/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/package.json: + {"pollingInterval":2000} /user/username/projects/solution/shared/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/shared/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js index 05edac3cde1b9..ccf48ebb994bc 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js @@ -146,6 +146,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/index.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/src/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/package.json 2000 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/api/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/api/tsconfig.json WatchType: Type roots @@ -259,10 +265,22 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/api/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -336,6 +354,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/shared/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/shared/tsconfig.json WatchType: Type roots @@ -545,6 +567,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/solution/app/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/shared/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/src/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/package.json 2000 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/app/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/solution/node_modules/@types 1 undefined Project: /user/username/projects/solution/app/tsconfig.json WatchType: Type roots @@ -689,14 +717,30 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} /user/username/projects/solution/api/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/api/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/api/src/package.json: + {"pollingInterval":2000} /user/username/projects/solution/app/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/app/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/solution/app/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/solution/node_modules/@types: {"pollingInterval":500} +/user/username/projects/solution/package.json: + {"pollingInterval":2000} /user/username/projects/solution/shared/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/solution/shared/package.json: + {"pollingInterval":2000} +/user/username/projects/solution/shared/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js b/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js index 5a0e4cf7c870a..7292e420348b3 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js @@ -448,6 +448,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/noCoreRef2 1 undefined Config: /user/username/projects/myproject/noCoreRef2/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/noCoreRef2 1 undefined Config: /user/username/projects/myproject/noCoreRef2/tsconfig.json WatchType: Wild card directory 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/src/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -548,10 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/main/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -647,6 +659,10 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/core/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/src/package.json 2000 undefined Project: /user/username/projects/myproject/core/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/package.json 2000 undefined Project: /user/username/projects/myproject/core/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/core/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/core/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/node_modules/@types 1 undefined Project: /user/username/projects/myproject/core/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/node_modules/@types 1 undefined Project: /user/username/projects/myproject/core/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/core/tsconfig.json WatchType: Type roots @@ -753,12 +769,24 @@ After request PolledWatches:: /user/username/projects/myproject/core/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/core/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/main/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -864,6 +892,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect/src/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/indirect/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect/src/package.json 2000 undefined Project: /user/username/projects/myproject/indirect/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect/package.json 2000 undefined Project: /user/username/projects/myproject/indirect/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/indirect/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/indirect/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirect/tsconfig.json WatchType: Type roots @@ -948,6 +980,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef1/src/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/coreRef1/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef1/src/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef1/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef1/node_modules/@types 1 undefined Project: /user/username/projects/myproject/coreRef1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef1/node_modules/@types 1 undefined Project: /user/username/projects/myproject/coreRef1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/coreRef1/tsconfig.json WatchType: Type roots @@ -1032,6 +1068,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad1/src/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad1/src/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad1/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad1/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad1/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json WatchType: Type roots @@ -1117,6 +1157,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad2/src/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad2/src/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad2/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad2/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirectDisabledChildLoad2/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json WatchType: Type roots @@ -1202,6 +1246,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refToCoreRef3/src/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refToCoreRef3/src/package.json 2000 undefined Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refToCoreRef3/package.json 2000 undefined Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refToCoreRef3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refToCoreRef3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/refToCoreRef3/tsconfig.json WatchType: Type roots @@ -1286,6 +1334,10 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef3/src/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/coreRef3/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef3/src/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef3/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef3/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/coreRef3/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/coreRef3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/coreRef3/node_modules/@types 1 undefined Project: /user/username/projects/myproject/coreRef3/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/coreRef3/tsconfig.json WatchType: Type roots @@ -1396,26 +1448,62 @@ After request PolledWatches:: /user/username/projects/myproject/core/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/core/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/core/src/file1.d.ts: *new* {"pollingInterval":2000} +/user/username/projects/myproject/core/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/coreRef1/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/coreRef1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/coreRef1/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/coreRef3/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/coreRef3/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/coreRef3/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/indirect/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/indirect/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/indirect/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/indirectDisabledChildLoad1/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/indirectDisabledChildLoad1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/indirectDisabledChildLoad1/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/indirectDisabledChildLoad2/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/indirectDisabledChildLoad2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/indirectDisabledChildLoad2/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/main/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/refToCoreRef3/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/refToCoreRef3/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refToCoreRef3/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js index 2b15dfbb2740a..7375a8ec9c487 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js @@ -142,6 +142,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/emit-composite/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/emit-composite/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/src/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots @@ -246,16 +252,28 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/consumer/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/consumer/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/consumer/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/consumer/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/packages/emit-composite/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/packages/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/packages/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/packages/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index 15c27bcb3e5bc..e71d0f6e4bcb4 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js index 15990209ed15e..36006b416874d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js index 4fee4dc60f5e5..7d5ba788e661c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js @@ -80,7 +80,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,19 +93,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +131,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -149,7 +153,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,23 +172,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -210,7 +223,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -252,6 +265,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -354,10 +370,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -522,12 +544,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -635,12 +663,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -687,12 +721,18 @@ export declare function fn5(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts: @@ -798,12 +838,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1147,12 +1193,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1246,12 +1298,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1343,12 +1401,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1436,12 +1500,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1532,6 +1602,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1566,6 +1639,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js index 4e674168e5e99..66f0d8ad57447 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -717,12 +751,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -855,12 +895,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1175,12 +1221,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1271,12 +1323,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1367,12 +1425,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1447,12 +1511,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1528,6 +1598,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1562,6 +1635,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js index 87e9715062962..238a41303acf6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js @@ -80,7 +80,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,19 +93,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +131,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -149,7 +153,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,23 +172,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -210,7 +223,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -252,6 +265,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -354,10 +370,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -522,12 +544,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -635,12 +663,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -952,12 +986,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1038,12 +1078,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1122,12 +1168,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1202,12 +1254,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1283,6 +1341,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1317,6 +1378,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index 82085c160a54a..60fe94a6b3a30 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js index fb735a3efb666..9070a37f3c20d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js index 26e43ac2d6701..70bb956552094 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js @@ -85,7 +85,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -257,6 +270,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -359,10 +375,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -527,12 +549,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -641,12 +669,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -707,12 +741,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -836,12 +876,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1185,12 +1231,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1284,12 +1336,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1381,12 +1439,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1474,12 +1538,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1570,6 +1640,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1603,6 +1676,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js index cb30c39780d91..cbd04da3d9f69 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -717,12 +751,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -858,12 +898,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1198,12 +1244,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1291,12 +1343,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1382,12 +1440,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1469,12 +1533,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1557,6 +1627,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1592,6 +1665,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js index 385fc305c2e86..67efaa2d19330 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js @@ -85,7 +85,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -257,6 +270,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -359,10 +375,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -527,12 +549,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -641,12 +669,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -980,12 +1014,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1073,12 +1113,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1164,12 +1210,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1251,12 +1303,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1339,6 +1397,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1374,6 +1435,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js index 2694ac9aeb183..40c6bcdc0abe3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -990,12 +1024,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1089,12 +1129,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1186,12 +1232,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1279,12 +1331,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1375,6 +1433,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1408,6 +1469,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js index b02835249fd6e..d80698e0f840b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js index 888fea550a277..7210875bb22d9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -260,6 +273,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -362,10 +378,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -530,12 +552,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -642,12 +670,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 30ed8e1aefc73..5ea50918c62f7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js index d141f46330b76..73b61ec91fec0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js index 29a677534b0fd..8eeb0ec19d79c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js @@ -85,7 +85,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -257,6 +270,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -359,10 +375,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -527,12 +549,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -640,12 +668,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -692,12 +726,18 @@ export declare function fn5(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts: @@ -803,12 +843,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1152,12 +1198,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1251,12 +1303,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1348,12 +1406,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1441,12 +1505,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1537,6 +1607,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1571,6 +1644,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js index 15893ef0311d5..b6fdce5178bce 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -722,12 +756,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -860,12 +900,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1180,12 +1226,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1276,12 +1328,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1372,12 +1430,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1452,12 +1516,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1533,6 +1603,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1567,6 +1640,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js index c349f0574b53c..b531d935ef272 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js @@ -85,7 +85,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -257,6 +270,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -359,10 +375,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -527,12 +549,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -640,12 +668,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -957,12 +991,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1043,12 +1083,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1127,12 +1173,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1207,12 +1259,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1288,6 +1346,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1322,6 +1383,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index 380f1928b37cb..869ddf9ede5ad 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js index cf71dff7ce766..e61da4a1dba77 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js index d88f7a5e72687..a63f6a18cc23e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js @@ -90,7 +90,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,19 +103,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -137,7 +141,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -159,7 +163,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,23 +182,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +233,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -364,10 +380,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -532,12 +554,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -646,12 +674,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -712,12 +746,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -841,12 +881,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1190,12 +1236,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1289,12 +1341,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1386,12 +1444,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1479,12 +1543,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1575,6 +1645,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1608,6 +1681,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js index 8b8b928054bf3..1ee4441623cdd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -722,12 +756,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -863,12 +903,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1203,12 +1249,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1296,12 +1348,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1387,12 +1445,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1474,12 +1538,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1562,6 +1632,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1597,6 +1670,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js index afb0cd50642b5..ce878a562d4ad 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js @@ -90,7 +90,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,19 +103,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -137,7 +141,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -159,7 +163,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,23 +182,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +233,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -364,10 +380,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -532,12 +554,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -646,12 +674,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -985,12 +1019,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1078,12 +1118,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1169,12 +1215,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1256,12 +1308,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1344,6 +1402,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1379,6 +1440,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js index d01b2493b0189..7c1f11045d5a3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js index 8e5f33b6b2fd7..e7a68f93d3187 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js index 52288c079b8e6..60e342e049904 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -995,12 +1029,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1094,12 +1134,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1191,12 +1237,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1284,12 +1336,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1380,6 +1438,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1413,6 +1474,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js index 2d44101b97678..9229503331853 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js index 71d32ae2bc573..b624974e2695d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -265,6 +278,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -367,10 +383,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -535,12 +557,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js index a42a88cfaa6b7..8aa8497990cd9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js @@ -105,6 +105,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -207,10 +210,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -375,12 +384,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -488,12 +503,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -805,12 +826,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -891,12 +918,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -975,12 +1008,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1055,12 +1094,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1136,6 +1181,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1170,6 +1218,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index f97b9a226f13d..c9732907596d0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js index dde4a1881fa88..6896d3a344144 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js index 1775d48b0dfae..169bd25d37a03 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js @@ -86,7 +86,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,19 +99,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -133,7 +137,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -155,7 +159,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,23 +178,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -216,7 +229,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -258,6 +271,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -360,10 +376,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -528,12 +550,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -641,12 +669,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -693,12 +727,18 @@ export declare function fn5(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts: @@ -804,12 +844,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1153,12 +1199,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1252,12 +1304,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1349,12 +1407,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1442,12 +1506,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1538,6 +1608,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1572,6 +1645,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js index a34e17eefb453..abd131ef41cd7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -723,12 +757,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -861,12 +901,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1181,12 +1227,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1277,12 +1329,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1373,12 +1431,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1453,12 +1517,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1534,6 +1604,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1568,6 +1641,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js index e2c3a8d1219b1..8b774e0846996 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js @@ -86,7 +86,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,19 +99,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -133,7 +137,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -155,7 +159,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,23 +178,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -216,7 +229,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -258,6 +271,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -360,10 +376,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -528,12 +550,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -641,12 +669,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -958,12 +992,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1044,12 +1084,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1128,12 +1174,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1208,12 +1260,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1289,6 +1347,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1323,6 +1384,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index 2109e2e5f2a19..58c01ed63f0d1 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js index e4819f6a44d9f..7a61c2877db08 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js index b72de1ec5acf6..4dd97be8daef1 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js @@ -91,7 +91,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,19 +104,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -138,7 +142,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -160,7 +164,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -179,23 +183,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +234,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -263,6 +276,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -365,10 +381,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -533,12 +555,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -713,12 +747,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -842,12 +882,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1191,12 +1237,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1290,12 +1342,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1387,12 +1445,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1480,12 +1544,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1576,6 +1646,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1609,6 +1682,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js index 9864e627e72c8..34cb3f604486c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -723,12 +757,18 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -864,12 +904,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1204,12 +1250,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1297,12 +1349,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1388,12 +1446,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1475,12 +1539,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1563,6 +1633,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1598,6 +1671,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js index fde36778706b6..9f7a7deb70095 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js @@ -91,7 +91,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,19 +104,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -138,7 +142,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -160,7 +164,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -179,23 +183,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +234,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -263,6 +276,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -365,10 +381,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -533,12 +555,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,12 +675,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -986,12 +1020,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1079,12 +1119,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1170,12 +1216,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1257,12 +1309,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1345,6 +1403,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1380,6 +1441,12 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js index 113e0e2f07508..442ec8ca4d126 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -996,12 +1030,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1095,12 +1135,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1192,12 +1238,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1285,12 +1337,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1381,6 +1439,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -1414,6 +1475,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index b25358b468862..035adb0b61805 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js index 957432de2d0c6..dcccfabb9d8cd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -266,6 +279,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -368,10 +384,16 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -536,12 +558,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -648,12 +676,18 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index 310a11ab6da7e..12371dc702a8c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js index 3f034f7455270..8f8ea4210c560 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js index 60e9b024bf868..6f446e834f4a5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js @@ -80,7 +80,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,19 +93,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +131,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -149,7 +153,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,23 +172,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -210,7 +223,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -253,6 +266,9 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -354,10 +370,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -425,6 +447,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -533,12 +558,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -723,14 +756,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -904,14 +945,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -970,14 +1019,22 @@ export declare function fn5(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts: @@ -1038,6 +1095,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -1095,16 +1153,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1928,16 +1996,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2052,16 +2130,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2174,16 +2262,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2292,16 +2390,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2411,16 +2519,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2536,6 +2654,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2558,6 +2680,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2591,10 +2716,20 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js index d6f2ea394e934..daabe1bdb1bec 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1075,16 +1133,26 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1179,6 +1247,7 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -1231,6 +1300,52 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/dependency/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/main/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/random/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/decls/FnS.d.ts.map: + {} +/user/username/projects/myproject/dependency/tsconfig.json: + {} +/user/username/projects/myproject/main/tsconfig.json: + {} +/user/username/projects/myproject/random/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/decls: + {} +/user/username/projects/myproject/dependency: + {} +/user/username/projects/myproject/main: + {} +/user/username/projects/myproject/random: + {} + Timeout callback:: count: 3 5: /user/username/projects/myproject/main/tsconfig.jsonFailedLookupInvalidation *deleted* 1: /user/username/projects/myproject/main/tsconfig.json @@ -1534,14 +1649,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1873,14 +1996,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1993,14 +2124,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2113,14 +2252,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2217,14 +2364,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2322,14 +2477,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2426,6 +2589,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2448,6 +2614,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2483,8 +2652,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js index 6c23340b1b2d4..6b3f6b1a7deec 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js @@ -80,7 +80,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,19 +93,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +131,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -149,7 +153,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,23 +172,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -210,7 +223,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -253,6 +266,9 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -354,10 +370,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -425,6 +447,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -533,12 +558,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -723,14 +756,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1112,14 +1153,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1446,14 +1495,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1554,14 +1611,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1660,14 +1725,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1762,14 +1835,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1865,14 +1946,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1967,6 +2056,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1989,6 +2081,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2024,8 +2119,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index 546b659d2a962..17be16412b243 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js index b1c5e4e3a9252..2c92bed038818 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js index 025d7b6dc2752..8914c1e5917ab 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js @@ -85,7 +85,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -259,6 +272,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -361,12 +378,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -440,6 +465,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -546,14 +574,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -742,16 +780,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -866,16 +914,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1029,16 +1087,26 @@ Before request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -1168,16 +1236,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1996,16 +2074,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2120,16 +2208,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2242,16 +2340,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2360,16 +2468,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2479,16 +2597,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2604,6 +2732,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2626,6 +2758,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2658,10 +2793,20 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js index 0acf0ed22dff1..a7fdb306a38e6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1074,16 +1132,26 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1227,16 +1295,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1883,16 +1961,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2001,16 +2089,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2117,16 +2215,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2229,16 +2337,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2342,16 +2460,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2459,6 +2587,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2481,6 +2613,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2515,10 +2650,20 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js index f60e333df4623..183d591717d26 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js @@ -85,7 +85,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -259,6 +272,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -361,12 +378,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -440,6 +465,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -546,14 +574,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -742,16 +780,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -866,16 +914,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1512,16 +1570,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1628,16 +1696,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1742,16 +1820,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1852,16 +1940,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1963,16 +2061,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2078,6 +2186,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2100,6 +2212,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2134,10 +2249,20 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js index 78444fef13f1b..560b8e913b7ad 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1689,16 +1747,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1813,16 +1881,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1935,16 +2013,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2053,16 +2141,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2172,16 +2270,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2297,6 +2405,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2319,6 +2431,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2351,10 +2466,20 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js index 251fddb490ec8..63c7b46a6e217 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js index 507740758399f..3e6521977cf8c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +468,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/dependency/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -549,14 +577,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -745,16 +783,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -867,16 +915,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 727782785468c..5cdc69a508f68 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js index 6bfd58a4894be..0655cf4d3d7e2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js index 6184d84e46db6..db729ab442ed1 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js @@ -85,7 +85,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -279,6 +292,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -381,12 +398,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -451,6 +476,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -559,12 +587,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -755,14 +791,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -970,14 +1014,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1039,14 +1091,22 @@ export declare function fn5(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts: @@ -1463,14 +1523,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1970,14 +2038,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2095,14 +2171,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2218,14 +2302,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2337,14 +2429,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2457,14 +2557,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2581,6 +2689,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2603,6 +2715,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2638,8 +2753,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js index 3a3fd8237f320..efe7ba1ca9d06 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1076,14 +1128,22 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1555,14 +1615,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2027,14 +2095,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2149,14 +2225,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2271,14 +2355,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2377,14 +2469,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2484,14 +2584,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2593,6 +2701,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2615,6 +2727,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2650,8 +2765,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js index b94cdae627fc3..f3bbc2fb1efd2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js @@ -85,7 +85,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -279,6 +292,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -381,12 +398,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -451,6 +476,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -559,12 +587,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -755,14 +791,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1178,14 +1222,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1647,14 +1699,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1759,14 +1819,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1869,14 +1937,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1975,14 +2051,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2082,14 +2166,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2191,6 +2283,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2213,6 +2309,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2248,8 +2347,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index 6977a5f0812b8..c18e21f7aa048 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js index e5c792040d6f7..3bf814b16431e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js index 3431eb0e50f9b..c540d083568b3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js @@ -90,7 +90,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,19 +103,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -137,7 +141,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -159,7 +163,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,23 +182,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +233,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -284,6 +297,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -386,12 +403,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -456,6 +481,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -564,12 +592,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -760,14 +796,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -976,14 +1020,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1065,14 +1117,22 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -1528,14 +1588,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2035,14 +2103,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2160,14 +2236,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2283,14 +2367,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2402,14 +2494,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2522,14 +2622,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2646,6 +2754,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2668,6 +2780,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2702,8 +2817,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js index 410f66da6c485..c683afdcff1ab 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1075,14 +1127,22 @@ Before request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1550,14 +1610,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2048,14 +2116,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2167,14 +2243,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2284,14 +2368,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2397,14 +2489,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2511,14 +2611,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2627,6 +2735,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2649,6 +2761,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2685,8 +2800,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js index 76a0edfbbf16b..d7e58d658810f 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js @@ -90,7 +90,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,19 +103,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -137,7 +141,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -159,7 +163,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,23 +182,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +233,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -284,6 +297,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -386,12 +403,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -456,6 +481,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -564,12 +592,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -760,14 +796,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1184,14 +1228,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1681,14 +1733,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1800,14 +1860,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1917,14 +1985,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2030,14 +2106,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2144,14 +2228,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2260,6 +2352,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2282,6 +2378,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2318,8 +2417,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js index 64c7997e99481..78abce4b5f16c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js index d12f802a6e8e7..c9b3f36a885e5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/goToDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/goToDef-and-rename-locations.js index 21c854f7e4f1f..e26ec87bd6e72 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/goToDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/goToDef-and-rename-locations.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1185,14 +1229,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1691,14 +1743,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1816,14 +1876,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1939,14 +2007,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2058,14 +2134,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2178,14 +2262,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2302,6 +2394,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2324,6 +2420,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2358,8 +2457,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js index 9bd7e5872e20f..67eb62fe9ce87 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js index 62957c4804eec..eac37bf4ad707 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -459,6 +484,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,12 +595,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,14 +799,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -977,14 +1021,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js index 5656a120df85c..2be45ee907da8 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js @@ -127,6 +127,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -231,12 +235,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -299,6 +311,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -409,12 +424,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -605,14 +628,22 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1028,14 +1059,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1497,14 +1536,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1609,14 +1656,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1719,14 +1774,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1825,14 +1888,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1932,14 +2003,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2039,6 +2118,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2061,6 +2144,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2098,8 +2184,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index 46aa0a63e2255..79a297b07f5c0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js index 4d8ca610a7c51..3a4199dd10489 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js index 2ce18420852d4..f4e4754d13fd5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js @@ -86,7 +86,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,19 +99,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -133,7 +137,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -155,7 +159,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,23 +178,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -216,7 +229,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -280,6 +293,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -382,10 +398,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +465,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -551,12 +576,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -741,14 +774,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -922,14 +963,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -988,14 +1037,22 @@ export declare function fn5(): void; PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts: @@ -1056,6 +1113,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -1113,16 +1171,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1946,16 +2014,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2070,16 +2148,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2192,16 +2280,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2310,16 +2408,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2429,16 +2537,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2554,6 +2672,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2576,6 +2698,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2609,10 +2734,20 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js index b04ae9cbc90a1..29c38fd89b5d5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1093,16 +1151,26 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1197,6 +1265,7 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -1249,6 +1318,52 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/dependency/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/main/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/random/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/decls/FnS.d.ts.map: + {} +/user/username/projects/myproject/dependency/tsconfig.json: + {} +/user/username/projects/myproject/main/tsconfig.json: + {} +/user/username/projects/myproject/random/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/decls: + {} +/user/username/projects/myproject/dependency: + {} +/user/username/projects/myproject/main: + {} +/user/username/projects/myproject/random: + {} + Timeout callback:: count: 3 5: /user/username/projects/myproject/main/tsconfig.jsonFailedLookupInvalidation *deleted* 1: /user/username/projects/myproject/main/tsconfig.json @@ -1552,14 +1667,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1891,14 +2014,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2011,14 +2142,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2131,14 +2270,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2235,14 +2382,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2340,14 +2495,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2444,6 +2607,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2466,6 +2632,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2501,8 +2670,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js index 384116b2be062..9a9a364390bf2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js @@ -86,7 +86,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,19 +99,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -133,7 +137,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -155,7 +159,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,23 +178,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -216,7 +229,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -280,6 +293,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -382,10 +398,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -443,6 +465,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -551,12 +576,20 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -741,14 +774,22 @@ After request PolledWatches:: /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1130,14 +1171,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1464,14 +1513,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1572,14 +1629,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1678,14 +1743,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1780,14 +1853,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1883,14 +1964,22 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1985,6 +2074,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2007,6 +2099,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2042,8 +2137,16 @@ PolledWatches *deleted*:: {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index 9e8d8a34e565c..927b4d2c52176 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js index 7c0852e2a3e74..fc728b51c99a3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js index e979548957e8a..af09e5be62dec 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js @@ -91,7 +91,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,19 +104,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -138,7 +142,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -160,7 +164,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -179,23 +183,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +234,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -286,6 +299,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -458,6 +483,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -564,14 +592,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -760,16 +798,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -884,16 +932,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1047,16 +1105,26 @@ Before request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -1186,16 +1254,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2014,16 +2092,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2138,16 +2226,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2260,16 +2358,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2378,16 +2486,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2497,16 +2615,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2622,6 +2750,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2644,6 +2776,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2676,10 +2811,20 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js index dd9f04dc3e3de..782c2feab8850 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1092,16 +1150,26 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1245,16 +1313,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1901,16 +1979,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2019,16 +2107,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2135,16 +2233,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2247,16 +2355,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2360,16 +2478,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2477,6 +2605,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2499,6 +2631,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2533,10 +2668,20 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js index 09e90fb59be63..0879c9d7997df 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js @@ -91,7 +91,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,19 +104,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -138,7 +142,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -160,7 +164,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -179,23 +183,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +234,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -286,6 +299,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -458,6 +483,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -564,14 +592,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -760,16 +798,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -884,16 +932,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1530,16 +1588,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1646,16 +1714,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1760,16 +1838,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1870,16 +1958,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1981,16 +2079,26 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2096,6 +2204,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2118,6 +2230,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2152,10 +2267,20 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/goToDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/goToDef-and-rename-locations.js index 90a304558e2ad..2874087c1474b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/goToDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/goToDef-and-rename-locations.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1707,16 +1765,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1831,16 +1899,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1953,16 +2031,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2071,16 +2159,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2190,16 +2288,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -2315,6 +2423,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -2337,6 +2449,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency 1 undefined Config: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -2369,10 +2484,20 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 8058aabbbdbab..a01f79bd39e0d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js index f372bab1d210e..6ed03c8e52f23 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -461,6 +486,9 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -567,14 +595,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -763,16 +801,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -885,16 +933,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/dependency/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js index 38525567b234f..f4ad5d5e9c2ea 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -961,14 +1002,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1068,14 +1117,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1173,14 +1230,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1274,14 +1339,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1385,6 +1458,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1417,8 +1494,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index 25eb6cf577a22..805870f68d1ca 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js index 4acbb37a67cb4..727361c13d445 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js index 73768ea9e3144..52b696423cbaa 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js @@ -80,7 +80,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,19 +93,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +131,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -149,7 +153,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,23 +172,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -210,7 +223,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -253,6 +266,9 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -354,10 +370,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -524,12 +546,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -652,6 +680,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -710,14 +739,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1026,14 +1063,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1133,14 +1178,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1238,14 +1291,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1339,14 +1400,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1450,6 +1519,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1482,8 +1555,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js index 7a348b05aa879..4bb6f48518b7e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -735,14 +776,22 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -824,6 +873,7 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -876,6 +926,46 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/main/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/random/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/decls/FnS.d.ts.map: + {} +/user/username/projects/myproject/dependency/FnS.ts: + {} +/user/username/projects/myproject/main/tsconfig.json: + {} +/user/username/projects/myproject/random/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/decls: + {} +/user/username/projects/myproject/main: + {} +/user/username/projects/myproject/random: + {} + Timeout callback:: count: 2 3: /user/username/projects/myproject/main/tsconfig.jsonFailedLookupInvalidation *deleted* 1: /user/username/projects/myproject/main/tsconfig.json @@ -1132,12 +1222,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1234,12 +1330,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1335,12 +1437,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1415,12 +1523,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1500,6 +1614,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1531,6 +1648,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js index 979cc84861eb3..cc7069f90ccf2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js @@ -80,7 +80,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -93,19 +93,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -127,7 +131,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -149,7 +153,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,23 +172,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -210,7 +223,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -253,6 +266,9 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -354,10 +370,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -524,12 +546,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -862,12 +890,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -948,12 +982,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1032,12 +1072,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1112,12 +1158,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1197,6 +1249,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1228,6 +1283,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index 1a985951b1c25..5dfa5a6480051 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js index 320a2453383de..0dd15743f0954 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js index d2c2dbab24db4..9555de8a63653 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js @@ -85,7 +85,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -259,6 +272,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -361,12 +378,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -537,14 +562,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,14 +680,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -697,14 +738,22 @@ Before request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -799,14 +848,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1112,14 +1169,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1219,14 +1284,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1324,14 +1397,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1425,14 +1506,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1536,6 +1625,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1568,8 +1661,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js index 009e002e0bd06..6ca6489feb7b3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -734,14 +775,22 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -872,14 +921,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1152,14 +1209,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1252,14 +1317,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1349,14 +1422,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1437,14 +1518,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1533,6 +1622,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1566,8 +1659,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js index 8029b2ea9671f..4450595ee3adb 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js @@ -85,7 +85,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -259,6 +272,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -361,12 +378,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -537,14 +562,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -647,14 +680,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -924,14 +965,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1018,14 +1067,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1110,14 +1167,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1198,14 +1263,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1294,6 +1367,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1327,8 +1404,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js index f2267b1666d8c..41a26d960891f 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js index d1617f70f468c..fe9081e0dba45 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js @@ -88,7 +88,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,19 +101,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -135,7 +139,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -157,7 +161,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -176,23 +180,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -218,7 +231,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -262,6 +275,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -364,12 +381,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -540,14 +565,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -649,14 +682,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js index 01a56ece58c7b..9e9f5d533900d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -917,14 +950,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1013,14 +1054,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1107,14 +1156,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1197,14 +1254,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1300,6 +1365,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1330,8 +1399,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js index b7cc92bf5c7d0..91c4ef177f211 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js index 6c6cf0d07ffc4..8385b4244369d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js index 4b6bbc516a5a5..66e5372a6d4e0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js @@ -85,7 +85,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -279,6 +292,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -381,12 +398,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -561,14 +586,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -978,14 +1011,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1074,14 +1115,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1168,14 +1217,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1258,14 +1315,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1361,6 +1426,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1391,8 +1460,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js index 4255a41bb659d..6235edb012cd5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -979,14 +1012,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1075,14 +1116,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1169,14 +1218,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1259,14 +1316,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1362,6 +1427,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1392,8 +1461,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js index 2b5b10bcb510f..07702e6351b42 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js @@ -85,7 +85,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,19 +98,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -132,7 +136,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -154,7 +158,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -173,23 +177,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -215,7 +228,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -279,6 +292,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -381,12 +398,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -561,14 +586,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -909,14 +942,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1005,14 +1046,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1099,14 +1148,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1189,14 +1246,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1292,6 +1357,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1322,8 +1391,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index f3fdb6fe39d54..fe349bf78c1a2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js index 601ddaa313e34..0b753384f81f8 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js index 491ea4db51db0..074e853dba293 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js @@ -90,7 +90,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,19 +103,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -137,7 +141,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -159,7 +163,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,23 +182,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +233,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -284,6 +297,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -386,12 +403,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -566,14 +591,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -971,14 +1004,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1067,14 +1108,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1161,14 +1210,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1251,14 +1308,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1354,6 +1419,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1384,8 +1453,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js index b11cbe4d11f5f..5450eccc196c6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -972,14 +1005,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1068,14 +1109,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1162,14 +1211,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1252,14 +1309,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1355,6 +1420,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1385,8 +1454,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js index 2a7e6464435f9..c22e944f27a5d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js @@ -90,7 +90,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,19 +103,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -137,7 +141,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -159,7 +163,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,23 +182,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -220,7 +233,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -284,6 +297,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -386,12 +403,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -566,14 +591,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -914,14 +947,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1010,14 +1051,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1104,14 +1153,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1194,14 +1251,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1297,6 +1362,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1327,8 +1396,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js index bee80295c7478..2349cdd81ec93 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js index f7d5d27e55723..e89c0e2e10262 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js index 7db916ae0b39a..6cb399a522bc7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js index 9ea741c50cf4d..2fde84858c725 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js @@ -93,7 +93,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,19 +106,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -140,7 +144,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -162,7 +166,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,23 +185,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -223,7 +236,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -287,6 +300,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js index ca8777a06bbf3..6ad3b94796eed 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js @@ -127,6 +127,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/FnS.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -231,12 +235,20 @@ After request PolledWatches:: /user/username/projects/myproject/decls: *new* {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -411,14 +423,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -759,14 +779,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -855,14 +883,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -949,14 +985,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1039,14 +1083,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1140,6 +1192,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1172,8 +1228,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls: {"pollingInterval":500} +/user/username/projects/myproject/dependency/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js index 97becebbf7095..a210d1c942492 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1001,14 +1042,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1112,14 +1161,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1221,14 +1278,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1326,14 +1391,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1444,6 +1517,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1476,8 +1553,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index 2c8803068fd24..f20172f88f34c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js index 4b5ee5e1646b5..796a3fcf14b9b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js index 18a276f3bf5b2..7ea0bc18a5716 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js @@ -86,7 +86,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,19 +99,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -133,7 +137,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -155,7 +159,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,23 +178,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -216,7 +229,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -280,6 +293,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -382,10 +398,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -556,12 +578,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -688,6 +716,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -746,14 +775,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1066,14 +1103,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1177,14 +1222,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1286,14 +1339,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1391,14 +1452,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1509,6 +1578,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1541,8 +1614,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js index 4a7dc0dafd7f7..07ef26e4e5807 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -775,14 +816,22 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -868,6 +917,7 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/main/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/main/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -920,6 +970,50 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/user/username/projects/myproject/main/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/random/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/node_modules/@types: + {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/username/projects/myproject/decls/FnS.d.ts.map: + {} +/user/username/projects/myproject/dependency/FnS.ts: + {} +/user/username/projects/myproject/dependency/tsconfig.json: + {} +/user/username/projects/myproject/main/tsconfig.json: + {} +/user/username/projects/myproject/random/tsconfig.json: + {} + +FsWatchesRecursive:: +/user/username/projects/myproject/decls: + {} +/user/username/projects/myproject/dependency: + {} +/user/username/projects/myproject/main: + {} +/user/username/projects/myproject/random: + {} + Timeout callback:: count: 2 3: /user/username/projects/myproject/main/tsconfig.jsonFailedLookupInvalidation *deleted* 1: /user/username/projects/myproject/main/tsconfig.json @@ -1176,12 +1270,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1282,12 +1382,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1387,12 +1493,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1471,12 +1583,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1563,6 +1681,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1594,6 +1715,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js index de62819156fee..75a071e814b9c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js @@ -86,7 +86,7 @@ function fn5() { } {"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -99,19 +99,23 @@ function fn5() { } "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -133,7 +137,7 @@ function fn5() { } "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -155,7 +159,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -174,23 +178,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -216,7 +229,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -280,6 +293,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -382,10 +398,16 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -556,12 +578,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -898,12 +926,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -988,12 +1022,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1076,12 +1116,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1160,12 +1206,18 @@ After request PolledWatches:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1252,6 +1304,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1283,6 +1338,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index 80e13e548a792..eddbab05bfec7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js index 234144ca7338f..6ebe4af753739 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js index 901186df12cf1..ce846ade242eb 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js @@ -91,7 +91,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,19 +104,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -138,7 +142,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -160,7 +164,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -179,23 +183,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +234,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -286,6 +299,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -683,14 +716,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -737,14 +778,22 @@ Before request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: @@ -843,14 +892,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1160,14 +1217,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1271,14 +1336,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1380,14 +1453,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1485,14 +1566,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1603,6 +1692,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1635,8 +1728,16 @@ PolledWatches:: {"pollingInterval":500} PolledWatches *deleted*:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js index f2d2fb6bd2e5b..605e29828ff30 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -774,14 +815,22 @@ Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] deleted PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -916,14 +965,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1200,14 +1257,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1304,14 +1369,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1405,14 +1478,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1497,14 +1578,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1600,6 +1689,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1633,8 +1726,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js index 982d83f1a5634..6dd84fe058361 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js @@ -91,7 +91,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -104,19 +104,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -138,7 +142,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -160,7 +164,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -179,23 +183,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -221,7 +234,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -286,6 +299,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -389,12 +406,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -569,14 +594,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -683,14 +716,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: *new* {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -964,14 +1005,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1062,14 +1111,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1158,14 +1215,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1250,14 +1315,22 @@ After request PolledWatches:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -1353,6 +1426,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/dependency/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -1386,8 +1463,16 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/decls/FnS.d.ts.map: {"pollingInterval":2000} +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 2a3850e95e417..6bfa302e3878d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js index 7c4672b24458f..0d6e5f2410ce4 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js @@ -94,7 +94,7 @@ export declare function fn5(): void; //# sourceMappingURL=FnS.d.ts.map //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n"}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./fns.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n","signature":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"declarationDir":"../decls","declarationMap":true},"referencedMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"../decls/FnS.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/dependency/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,19 +107,23 @@ export declare function fn5(): void; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "./fns.ts": { "original": { "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 }, "version": "-18619918033-export function fn1() { }\nexport function fn2() { }\nexport function fn3() { }\nexport function fn4() { }\nexport function fn5() { }\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -141,7 +145,7 @@ export declare function fn5(): void; "latestChangedDtsFile": "../decls/FnS.d.ts" }, "version": "FakeTSVersion", - "size": 1077 + "size": 1113 } //// [/user/username/projects/myproject/main/main.js] @@ -163,7 +167,7 @@ export {}; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n",{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../decls/fns.d.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n","impliedFormat":1},{"version":"-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n","signature":"-3531856636-export {};\n","impliedFormat":1}],"root":[3],"options":{"composite":true,"declarationMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./main.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -182,23 +186,32 @@ export {}; "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": 1 }, "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true + "affectsGlobalScope": true, + "impliedFormat": "commonjs" }, "../decls/fns.d.ts": { + "original": { + "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": 1 + }, "version": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", - "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n" + "signature": "-18267052502-export declare function fn1(): void;\nexport declare function fn2(): void;\nexport declare function fn3(): void;\nexport declare function fn4(): void;\nexport declare function fn5(): void;\n", + "impliedFormat": "commonjs" }, "./main.ts": { "original": { "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": 1 }, "version": "-805644102-import {\n fn1,\n fn2,\n fn3,\n fn4,\n fn5\n} from '../decls/fns'\n\nfn1();\nfn2();\nfn3();\nfn4();\nfn5();\n", - "signature": "-3531856636-export {};\n" + "signature": "-3531856636-export {};\n", + "impliedFormat": "commonjs" } }, "root": [ @@ -224,7 +237,7 @@ export {}; "latestChangedDtsFile": "./main.d.ts" }, "version": "FakeTSVersion", - "size": 1105 + "size": 1171 } @@ -289,6 +302,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/fns.d.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/decls/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/package.json 2000 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/main/tsconfig.json WatchType: Type roots @@ -392,12 +409,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -572,14 +597,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -685,14 +718,22 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/decls/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/main/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/main/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/random/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js b/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js index ca00c6f28f1d6..595539cbde37d 100644 --- a/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js +++ b/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js @@ -64,6 +64,9 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -161,8 +164,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js index 94be5e3eb17af..b89de823ad450 100644 --- a/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js @@ -73,6 +73,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/spec.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/playground/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots @@ -175,10 +181,22 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -243,10 +261,22 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -326,6 +356,11 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/playground/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src 1 undefined Config: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src 1 undefined Config: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Type roots @@ -419,6 +454,12 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground 1 undefined Config: /user/username/projects/myproject/playground/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground 1 undefined Config: /user/username/projects/myproject/playground/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots @@ -442,12 +483,26 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/playground/tsconfig-json/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -532,6 +587,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -605,24 +665,36 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/tsconfig-json/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/tests/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/tests/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/tests/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projects/files-opened-and-closed-affecting-multiple-projects.js b/tests/baselines/reference/tsserver/projects/files-opened-and-closed-affecting-multiple-projects.js index 1b9045e3d3611..2172473e9e5b4 100644 --- a/tests/baselines/reference/tsserver/projects/files-opened-and-closed-affecting-multiple-projects.js +++ b/tests/baselines/reference/tsserver/projects/files-opened-and-closed-affecting-multiple-projects.js @@ -63,6 +63,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/projects/config/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/files/file1.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /a/b/projects/files/package.json 2000 undefined Project: /a/b/projects/config/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/package.json 2000 undefined Project: /a/b/projects/config/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/config/package.json 2000 undefined Project: /a/b/projects/config/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/config/node_modules/@types 1 undefined Project: /a/b/projects/config/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/config/node_modules/@types 1 undefined Project: /a/b/projects/config/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/node_modules/@types 1 undefined Project: /a/b/projects/config/tsconfig.json WatchType: Type roots @@ -160,8 +163,14 @@ After request PolledWatches:: /a/b/projects/config/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/config/package.json: *new* + {"pollingInterval":2000} +/a/b/projects/files/package.json: *new* + {"pollingInterval":2000} /a/b/projects/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/b/projects/config/tsconfig.json: *new* @@ -226,8 +235,14 @@ After request PolledWatches:: /a/b/projects/config/node_modules/@types: {"pollingInterval":500} +/a/b/projects/config/package.json: + {"pollingInterval":2000} +/a/b/projects/files/package.json: + {"pollingInterval":2000} /a/b/projects/node_modules/@types: {"pollingInterval":500} +/a/b/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/b/projects/config/tsconfig.json: @@ -286,8 +301,14 @@ After request PolledWatches:: /a/b/projects/config/node_modules/@types: {"pollingInterval":500} +/a/b/projects/config/package.json: + {"pollingInterval":2000} +/a/b/projects/files/package.json: + {"pollingInterval":2000} /a/b/projects/node_modules/@types: {"pollingInterval":500} +/a/b/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/b/projects/config/file.ts: *new* @@ -338,6 +359,8 @@ Info seq [hh:mm:ss:mss] For info: /a/b/projects/files/file2.ts :: No config fil Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/files/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/files/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/files/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/files/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/files/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -374,6 +397,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/projects/config 1 undefined Config: /a/b/projects/config/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /a/b/projects/config 1 undefined Config: /a/b/projects/config/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/b/projects/config/tsconfig.json 2000 undefined Project: /a/b/projects/config/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/b/projects/files/package.json 2000 undefined Project: /a/b/projects/config/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/b/projects/package.json 2000 undefined Project: /a/b/projects/config/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/b/projects/config/package.json 2000 undefined Project: /a/b/projects/config/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/projects/config/node_modules/@types 1 undefined Project: /a/b/projects/config/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /a/b/projects/config/node_modules/@types 1 undefined Project: /a/b/projects/config/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/projects/node_modules/@types 1 undefined Project: /a/b/projects/config/tsconfig.json WatchType: Type roots @@ -399,14 +425,20 @@ PolledWatches:: {"pollingInterval":2000} /a/b/projects/files/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/files/package.json: + {"pollingInterval":2000} /a/b/projects/files/tsconfig.json: *new* {"pollingInterval":2000} /a/b/projects/node_modules/@types: {"pollingInterval":500} +/a/b/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /a/b/projects/config/node_modules/@types: {"pollingInterval":500} +/a/b/projects/config/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -478,6 +510,8 @@ Info seq [hh:mm:ss:mss] Projects: Info seq [hh:mm:ss:mss] FileName: /a/b/projects/files/file2.ts ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/files/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/files/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/files/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js b/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js index ab81500303f15..752ef947916ec 100644 --- a/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js +++ b/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js @@ -62,6 +62,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/sub/a.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] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/sub/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 @@ -159,8 +162,14 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/sub/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -226,8 +235,14 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} +/users/username/projects/project/sub/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -348,6 +363,7 @@ Info seq [hh:mm:ss:mss] 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] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/sub/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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) @@ -379,6 +395,30 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/users/username/projects/node_modules/@types: + {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types: + {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/username/projects/project/sub/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/users/username/projects/project/tsconfig.json: + {} + +FsWatchesRecursive:: +/users/username/projects/project: + {} + Projects:: /users/username/projects/project/tsconfig.json (Configured) *changed* projectStateVersion: 2 @@ -582,12 +622,16 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/a.ts: *new* {"pollingInterval":500} /users/username/projects/project/jsconfig.json: *new* {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} /users/username/projects/project/sub/jsconfig.json: *new* {"pollingInterval":2000} /users/username/projects/project/sub/node_modules/@types: *new* @@ -775,8 +819,12 @@ After running Timeout callback:: count: 2 PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} /users/username/projects/project/sub/node_modules/@types: {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/projects/no-project-structure-update-on-directory-watch-invoke-on-open-file-save.js b/tests/baselines/reference/tsserver/projects/no-project-structure-update-on-directory-watch-invoke-on-open-file-save.js index ce60368069fa7..a1dccf9b6cb3c 100644 --- a/tests/baselines/reference/tsserver/projects/no-project-structure-update-on-directory-watch-invoke-on-open-file-save.js +++ b/tests/baselines/reference/tsserver/projects/no-project-structure-update-on-directory-watch-invoke-on-open-file-save.js @@ -42,6 +42,8 @@ Info seq [hh:mm:ss:mss] Config: /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: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -182,8 +184,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* diff --git a/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js index 2ecf8a7fc092f..8c806be1dcf43 100644 --- a/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js @@ -73,6 +73,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/spec.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/playground/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots @@ -175,10 +181,22 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -243,10 +261,22 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -326,6 +356,11 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/playground/ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src 1 undefined Config: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src 1 undefined Config: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig-json/tsconfig.json WatchType: Type roots @@ -419,6 +454,12 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground 1 undefined Config: /user/username/projects/myproject/playground/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground 1 undefined Config: /user/username/projects/myproject/playground/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/src/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/package.json 2000 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/playground/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/playground/tsconfig.json WatchType: Type roots @@ -442,12 +483,26 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/playground/tsconfig-json/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -534,6 +589,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/tests/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -611,18 +671,28 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/playground/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/playground/tsconfig-json/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/playground/tsconfig-json/src/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/tests/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/tests/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/playground/tsconfig-json/tests/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/tests/spec.d.ts: *new* {"pollingInterval":2000} /user/username/projects/myproject/playground/tsconfig-json/tests/tsconfig.json: *new* @@ -631,6 +701,8 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projects/requests-are-done-on-file-on-pendingReload-but-has-svc-for-previous-version.js b/tests/baselines/reference/tsserver/projects/requests-are-done-on-file-on-pendingReload-but-has-svc-for-previous-version.js index 90e25ae44dd82..355dd3cbfad97 100644 --- a/tests/baselines/reference/tsserver/projects/requests-are-done-on-file-on-pendingReload-but-has-svc-for-previous-version.js +++ b/tests/baselines/reference/tsserver/projects/requests-are-done-on-file-on-pendingReload-but-has-svc-for-previous-version.js @@ -62,6 +62,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -160,8 +163,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -226,8 +235,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -286,8 +301,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-redirect-info-when-requested.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-redirect-info-when-requested.js index c5e1b5715d41e..37d2939c10653 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-redirect-info-when-requested.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-redirect-info-when-requested.js @@ -77,6 +77,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/A 1 undefined Config: /users/username/projects/project/A/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/A/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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/A/package.json 2000 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/A/node_modules/@types 1 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/A/node_modules/@types 1 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: Type roots @@ -178,10 +181,16 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/A/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/A/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -252,6 +261,10 @@ Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/B/tsconfig.jso Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/B 1 undefined Config: /users/username/projects/project/B/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/B 1 undefined Config: /users/username/projects/project/B/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/B/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/A/package.json 2000 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/B/package.json 2000 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/B/node_modules/@types 1 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/B/node_modules/@types 1 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: Type roots @@ -362,12 +375,20 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/A/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/A/package.json: + {"pollingInterval":2000} /users/username/projects/project/B/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/B/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-updates-to-redirect-info-when-requested.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-updates-to-redirect-info-when-requested.js index 47e48395f99ca..9aef337136d31 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-updates-to-redirect-info-when-requested.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-provides-updates-to-redirect-info-when-requested.js @@ -80,6 +80,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/A 1 undefined Config: /users/username/projects/project/A/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/A/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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/A/package.json 2000 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/A/node_modules/@types 1 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/A/node_modules/@types 1 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: Type roots @@ -181,10 +184,16 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/A/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/A/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -257,6 +266,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/B 1 undefined Config: /users/username/projects/project/B/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/B/b2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/B/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/B/package.json 2000 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/B/node_modules/@types 1 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/B/node_modules/@types 1 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/B/tsconfig.json WatchType: Type roots @@ -368,12 +380,20 @@ After request PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/A/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/A/package.json: + {"pollingInterval":2000} /users/username/projects/project/B/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/B/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -674,6 +694,7 @@ Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/A/tsconfig.jso } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/A/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/B/package.json 2000 undefined Project: /users/username/projects/project/A/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/A/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/A/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js index 6ed58f71d0a42..64545ddf55227 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js @@ -59,6 +59,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -159,10 +161,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig_base.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js index af012959bfcd1..b9e42f1e875c2 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js @@ -59,6 +59,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -159,10 +161,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig_base.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js b/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js index 29c68a7598a60..fbfc32f40eff3 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js @@ -183,6 +183,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.ts 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/package.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/package.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/package.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/package.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots @@ -297,10 +302,20 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/core/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/sample1/logic/package.json: *new* + {"pollingInterval":2000} /user/username/projects/sample1/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/sample1/package.json: *new* + {"pollingInterval":2000} /user/username/projects/sample1/tests/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/sample1/tests/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js index 307998a491f6c..05cb4c627aace 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js @@ -173,6 +173,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -279,12 +285,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -376,6 +394,7 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/b/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -428,12 +447,26 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -576,6 +609,7 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/a/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -630,12 +664,24 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js index 1a86b0c7db29d..b33f3ec2f6732 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js @@ -173,6 +173,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -279,12 +285,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js index 2e177e7c19235..ac5f85a3cdb95 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js @@ -173,6 +173,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -279,12 +285,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -415,8 +433,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/b/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -471,12 +491,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -607,8 +643,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/b/tsconfig.js } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -663,12 +701,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js index fb19231621672..6bb073b6a0f8a 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js @@ -173,6 +173,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -279,12 +285,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -424,8 +442,10 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -500,12 +520,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -645,8 +681,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/c/tsconfig.js Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -721,12 +759,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js index 710124953b93e..a4ab5cbfda962 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js @@ -173,6 +173,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -279,12 +285,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js index eb05d1f0d4648..27ec451a04908 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js @@ -170,6 +170,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -276,12 +282,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -382,6 +400,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -434,12 +453,26 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -585,6 +618,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Config: /user/username/projects/myproject/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -639,12 +673,24 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js index d89993a3e12a3..e22b93091c09e 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js @@ -170,6 +170,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -276,12 +282,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js index 878f60b80791e..cacab0935701e 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js @@ -170,6 +170,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -276,12 +282,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -411,8 +429,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/b/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -467,12 +487,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -600,8 +636,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/b/tsconfig.js } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -656,12 +694,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js index c0b48df2340cd..5dc02ca2ee99b 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js @@ -170,6 +170,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -276,12 +282,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -420,8 +438,10 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -496,12 +516,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/nrefs/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/refs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -640,8 +676,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/c/tsconfig.js Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/nrefs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/c/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -716,12 +754,28 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: +/user/username/projects/myproject/a/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/myproject/nrefs/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js index f60406c06a293..3b1973ef358a0 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js @@ -170,6 +170,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/refs/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/package.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Type roots @@ -276,12 +282,24 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/a/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/c/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/c/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/refs/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js index a7a6ecb92b1c9..48d38706b0884 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js @@ -110,6 +110,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 {" Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -205,10 +207,14 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -260,6 +266,8 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -292,6 +300,10 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -366,14 +378,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -434,6 +458,10 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -464,6 +492,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -538,12 +570,28 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -602,6 +650,10 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -635,6 +687,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -707,12 +763,28 @@ After request PolledWatches:: /user/username/projects/myproject/file2: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js index 431f2fa2c7246..c6dd7c274624e 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js +++ b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js @@ -125,6 +125,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 {" Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -208,10 +210,14 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -272,10 +278,14 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -327,6 +337,8 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -359,6 +371,10 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -433,14 +449,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -501,6 +529,10 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -531,6 +563,10 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -605,12 +641,28 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -669,6 +721,10 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -702,6 +758,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -774,12 +834,28 @@ After request PolledWatches:: /user/username/projects/myproject/file2: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/reloadProjects/external-project.js b/tests/baselines/reference/tsserver/reloadProjects/external-project.js index 384306232323d..54f2bfb1cf3b4 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/external-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/external-project.js @@ -83,6 +83,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 {" Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots @@ -153,10 +155,14 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -209,10 +215,14 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -258,6 +268,8 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots @@ -265,6 +277,10 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots @@ -319,14 +335,26 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -383,11 +411,19 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: No config files found. Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/project.sln Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots @@ -442,12 +478,28 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -502,6 +554,10 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: No config files found. Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots @@ -511,6 +567,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/file2.ts 500 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Missing file Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.sln WatchType: Type roots @@ -564,12 +624,28 @@ After request PolledWatches:: /user/username/projects/myproject/file2: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js b/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js index 1bdb1d7dd6fc3..a026b1d21950b 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js @@ -97,6 +97,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 {" Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -132,12 +134,16 @@ After request PolledWatches:: /user/username/projects/myproject/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -183,6 +189,8 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -198,6 +206,10 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"]} WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -245,16 +257,28 @@ After request PolledWatches:: /user/username/projects/myproject/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -311,6 +335,10 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: No config files found. Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -324,6 +352,10 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/file1.ts P Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -371,14 +403,30 @@ After request PolledWatches:: /user/username/projects/myproject/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -433,6 +481,10 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/file1.ts :: No config files found. Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -450,6 +502,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module1/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeFiles":["/user/username/projects/myproject/file2.ts"],"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -496,14 +552,30 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/jsconfig.json: {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} *new* +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} *new* /user/username/projects/myproject/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} *new* +/user/username/projects/package.json: + {"pollingInterval":2000} *new* PolledWatches *deleted*:: +/user/username/projects/myproject/node_modules/module1/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/rename/with-symlinks-and-case-difference.js b/tests/baselines/reference/tsserver/rename/with-symlinks-and-case-difference.js index f383b27085020..77b3c764587fd 100644 --- a/tests/baselines/reference/tsserver/rename/with-symlinks-and-case-difference.js +++ b/tests/baselines/reference/tsserver/rename/with-symlinks-and-case-difference.js @@ -104,6 +104,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/proj Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/project1 1 undefined Config: c:/temp/test/project1/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: c:/temp/test/project1/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/test/project1/package.json 2000 undefined Project: c:/temp/test/project1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/project1/node_modules/@types 1 undefined Project: c:/temp/test/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/project1/node_modules/@types 1 undefined Project: c:/temp/test/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/node_modules/@types 1 undefined Project: c:/temp/test/project1/tsconfig.json WatchType: Type roots @@ -221,7 +222,7 @@ c:/temp/test/project1/node_modules/@types: *new* FsWatches:: C:/a/lib/lib.d.ts: *new* {} -c:/temp/test/project1/package.json: *new* +C:/temp/test/project1/package.json: *new* {} c:/temp/test/project1/tsconfig.json: *new* {} @@ -399,6 +400,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/node_modules 1 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/node_modules 1 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/test/project1/package.json 2000 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/test/project2/package.json 2000 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/test/package.json 2000 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/package.json 2000 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/project2/node_modules/@types 1 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/project2/node_modules/@types 1 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/test/node_modules/@types 1 undefined Project: c:/temp/test/project2/tsconfig.json WatchType: Type roots @@ -558,6 +562,12 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +C:/temp/package.json: *new* + {"pollingInterval":2000} +C:/temp/test/package.json: *new* + {"pollingInterval":2000} +C:/temp/test/project2/package.json: *new* + {"pollingInterval":2000} c:/temp/node_modules/@types: {"pollingInterval":500} c:/temp/test/node_modules/@types: @@ -574,7 +584,7 @@ c:/temp/test/project2/node_modules/@types: *new* FsWatches:: C:/a/lib/lib.d.ts: {} -c:/temp/test/project1/package.json: +C:/temp/test/project1/package.json: {} c:/temp/test/project1/tsconfig.json: {} diff --git a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js index d1b8085ee8531..52cc3da7d0ee5 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js +++ b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js @@ -66,6 +66,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/src/file1.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -92,15 +98,40 @@ Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/mo Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. 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: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/module1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -203,8 +234,22 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/module2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js index facf91fb99468..0507b790c194c 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js +++ b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js @@ -41,6 +41,9 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Search path: /a/b Info seq [hh:mm:ss:mss] For info: /a/b/app.js :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] File '/a/b/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] ======== Resolving module 'lib' from '/a/b/app.js'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'lib' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -59,6 +62,17 @@ Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/lib.d.ts' does not exist. Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/lib/package.json' does not exist. Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/lib.d.ts' does not exist. Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/lib/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/cache/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -76,6 +90,12 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: Creating typing installer PolledWatches:: +/a/cache/node_modules/@types/lib/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/package.json: *new* + {"pollingInterval":2000} /a/lib/lib.d.ts: *new* {"pollingInterval":500} @@ -222,6 +242,12 @@ PolledWatches:: {"pollingInterval":500} /a/b/node_modules: *new* {"pollingInterval":500} +/a/cache/node_modules/@types/lib/package.json: + {"pollingInterval":2000} +/a/cache/node_modules/@types/package.json: + {"pollingInterval":2000} +/a/cache/node_modules/package.json: + {"pollingInterval":2000} /a/lib/lib.d.ts: {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js index bad451670f9bc..bfdb021c7268a 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js @@ -81,6 +81,13 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/file1.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -109,10 +116,33 @@ Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/mo Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -127,6 +157,13 @@ Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for pre Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -141,6 +178,14 @@ Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for pre Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -155,11 +200,25 @@ Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for pre Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. 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: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/module1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -277,8 +336,30 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/module2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/src/feature/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/test/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/test/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -407,14 +488,110 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js index 774f7f4621769..e601207f4a923 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js @@ -71,6 +71,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/src/file1.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -97,21 +103,52 @@ Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/mo Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/src/file2.ts'. ======== Info seq [hh:mm:ss:mss] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/src'. Info seq [hh:mm:ss:mss] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file2.ts'. ======== Info seq [hh:mm:ss:mss] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/src'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. 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: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/module1/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module2/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -219,8 +256,22 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/module2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -313,10 +364,70 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js index d1dad25b9ed1b..a49c1d525743d 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js @@ -71,6 +71,13 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] ======== Resolving module './feature/file2' from '/user/username/projects/myproject/product/src/file1.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/feature/file2', target file types: TypeScript, Declaration. @@ -114,6 +121,14 @@ Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/mo Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. @@ -129,10 +144,32 @@ Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for pre Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. @@ -148,6 +185,14 @@ Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for pre Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. @@ -163,6 +208,9 @@ Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for pre Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'. Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ======== +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. 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: /user/username/projects/myproject/product/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations @@ -176,6 +224,17 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/module1/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/module2/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -236,28 +295,50 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/module2/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/product/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/product/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/product/node_modules/module1/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/src/feature/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/product/src/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/product/src/node_modules: *new* {"pollingInterval":500} /user/username/projects/myproject/product/src/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/product/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/product/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/product/test/node_modules: *new* {"pollingInterval":500} +/user/username/projects/myproject/product/test/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/product/test/src/node_modules: *new* {"pollingInterval":500} +/user/username/projects/myproject/product/test/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/product/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -382,17 +463,113 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module './feature/file2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/src/feature/file2.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '../test/file4' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/test/file4.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '../test/src/file3' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/test/src/file3.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (7) diff --git a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js index 7b17fe05b5042..15c52828ac7ef 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js @@ -104,6 +104,11 @@ Info seq [hh:mm:ss:mss] Config: /users/username/projects/common/tsconfig.json : Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/common/tsconfig.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common 1 undefined Config: /users/username/projects/common/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common 1 undefined Config: /users/username/projects/common/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] File '/users/username/projects/app/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] ======== Resolving module 'moduleX' from '/users/username/projects/app/appA.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -118,13 +123,29 @@ Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/ind Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/users/username/projects/node_modules/moduleX/index.d.ts', result '/users/username/projects/node_modules/moduleX/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'moduleX' was successfully resolved to '/users/username/projects/node_modules/moduleX/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/users/username/projects/app/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '../common/moduleB' from '/users/username/projects/app/appB.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/users/username/projects/common/moduleB', target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] File '/users/username/projects/common/moduleB.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] ======== Module name '../common/moduleB' was successfully resolved to '/users/username/projects/common/moduleB.ts'. ======== +Info seq [hh:mm:ss:mss] File '/users/username/projects/common/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module 'moduleX' from '/users/username/projects/common/moduleB.ts'. ======== Info seq [hh:mm:ss:mss] Using compiler options of project reference redirect '/users/username/projects/common/tsconfig.json'. @@ -141,12 +162,18 @@ Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/ind Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/users/username/projects/node_modules/moduleX/index.d.ts', result '/users/username/projects/node_modules/moduleX/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'moduleX' was successfully resolved to '/users/username/projects/node_modules/moduleX/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/app/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/app/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/moduleX/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/app/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/common/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/users/username/projects/app/tsconfig.json' (Configured) @@ -299,8 +326,18 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/app/node_modules: *new* {"pollingInterval":500} +/users/username/projects/app/package.json: *new* + {"pollingInterval":2000} /users/username/projects/common/node_modules: *new* {"pollingInterval":500} +/users/username/projects/common/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/node_modules/moduleX/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/app/appA.ts: *new* diff --git a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js index 746b72b2e010a..ca36015d5f06c 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js +++ b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js @@ -40,6 +40,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/tem Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/temp/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -75,12 +77,16 @@ PolledWatches:: {"pollingInterval":500} /a/b/projects/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/package.json: *new* + {"pollingInterval":2000} /a/b/projects/temp/jsconfig.json: *new* {"pollingInterval":2000} /a/b/projects/temp/node_modules: *new* {"pollingInterval":500} /a/b/projects/temp/node_modules/@types: *new* {"pollingInterval":500} +/a/b/projects/temp/package.json: *new* + {"pollingInterval":2000} /a/b/projects/temp/tsconfig.json: *new* {"pollingInterval":2000} @@ -240,8 +246,12 @@ PolledWatches:: {"pollingInterval":500} /a/b/projects/node_modules/@types: {"pollingInterval":500} +/a/b/projects/package.json: + {"pollingInterval":2000} /a/b/projects/temp/jsconfig.json: {"pollingInterval":2000} +/a/b/projects/temp/package.json: + {"pollingInterval":2000} /a/b/projects/temp/tsconfig.json: {"pollingInterval":2000} @@ -277,6 +287,9 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules/@types/pad/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/temp/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /a/b/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -301,8 +314,18 @@ After running Timeout callback:: count: 1 PolledWatches:: /a/b/projects/node_modules/@types: {"pollingInterval":500} +/a/b/projects/package.json: + {"pollingInterval":2000} /a/b/projects/temp/jsconfig.json: {"pollingInterval":2000} +/a/b/projects/temp/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/b/projects/temp/node_modules/@types/pad/package.json: *new* + {"pollingInterval":2000} +/a/b/projects/temp/node_modules/package.json: *new* + {"pollingInterval":2000} +/a/b/projects/temp/package.json: + {"pollingInterval":2000} /a/b/projects/temp/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js index 5796511fd15f7..5a895960c60bf 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js @@ -85,6 +85,19 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module './module1' from '/user/username/projects/myproject/product/src/file1.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1', target file types: TypeScript, Declaration. @@ -95,6 +108,21 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10' Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/module2.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] ======== Module name '../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '../module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1', target file types: TypeScript, Declaration. @@ -105,6 +133,13 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10' Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/module2.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] ======== Module name '../../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '../src/module1}' from '/user/username/projects/myproject/product/test/file4.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1}', target file types: TypeScript, Declaration. @@ -124,6 +159,14 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10' Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/module2.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] ======== Module name '../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '../../src/module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/src/module1', target file types: TypeScript, Declaration. @@ -134,7 +177,17 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10' Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/product/module2', target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/module2.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] ======== Module name '../../module2' was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. ======== +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -253,8 +306,22 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/src/feature/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/test/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/product/test/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -383,14 +450,106 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module './module1' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/src/module1.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '../module2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/feature/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '../module1' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/src/module1.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '../../module2' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '../src/module1}' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Reusing resolution of module '../module2' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/test/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '../../src/module1' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/src/module1.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '../../module2' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/module2.ts'. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js index 2f8807d95dd91..c26db65923092 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js @@ -75,6 +75,17 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/module1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module './module1' from '/user/username/projects/myproject/src/file1.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/module1', target file types: TypeScript, Declaration. @@ -85,13 +96,31 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10' Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/user/username/projects/myproject/module2', target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/module2.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] ======== Module name '../module2' was successfully resolved to '/user/username/projects/myproject/module2.ts'. ======== +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module './module1' from '/user/username/projects/myproject/src/file2.ts'. ======== Info seq [hh:mm:ss:mss] Resolution for module './module1' was found in cache from location '/user/username/projects/myproject/src'. Info seq [hh:mm:ss:mss] ======== Module name './module1' was successfully resolved to '/user/username/projects/myproject/src/module1.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '../module2' from '/user/username/projects/myproject/src/file2.ts'. ======== Info seq [hh:mm:ss:mss] Resolution for module '../module2' was found in cache from location '/user/username/projects/myproject/src'. Info seq [hh:mm:ss:mss] ======== Module name '../module2' was successfully resolved to '/user/username/projects/myproject/module2.ts'. ======== +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -201,8 +230,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -293,10 +328,62 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module './module1' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/module1.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '../module2' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/module2.ts'. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module './module1' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/module1.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '../module2' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/module2.ts'. +Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) diff --git a/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-configured-projects.js b/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-configured-projects.js index a3e424e839120..8b5ec77bc64bc 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-configured-projects.js +++ b/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-configured-projects.js @@ -47,6 +47,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p 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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile.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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -191,8 +193,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/moduleFile.ts: *new* @@ -263,8 +269,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: @@ -354,10 +364,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: *new* @@ -452,10 +466,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/moduleFile: {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} FsWatches:: /users/username/projects/project: @@ -546,8 +564,12 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/project/moduleFile: diff --git a/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-inferred-projects.js b/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-inferred-projects.js index ecc6ac6021384..10301517f82b8 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-inferred-projects.js +++ b/tests/baselines/reference/tsserver/resolutionCache/renaming-module-should-restore-the-states-for-inferred-projects.js @@ -23,6 +23,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projec Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -59,10 +61,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/jsconfig.json: *new* {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -121,10 +127,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/jsconfig.json: {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} /users/username/projects/project/tsconfig.json: {"pollingInterval":2000} @@ -204,12 +214,16 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/jsconfig.json: {"pollingInterval":2000} /users/username/projects/project/moduleFile: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} /users/username/projects/project/tsconfig.json: {"pollingInterval":2000} @@ -374,10 +388,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/jsconfig.json: {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} /users/username/projects/project/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js index 329eb98be339e..70531d74ae9c6 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js @@ -102,6 +102,11 @@ Info seq [hh:mm:ss:mss] Config: /users/username/projects/common/tsconfig.json : Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/common/tsconfig.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common 1 undefined Config: /users/username/projects/common/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common 1 undefined Config: /users/username/projects/common/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] File '/users/username/projects/app/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. Info seq [hh:mm:ss:mss] ======== Resolving module 'moduleX' from '/users/username/projects/app/appA.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration. @@ -116,13 +121,29 @@ Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/ind Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/users/username/projects/node_modules/moduleX/index.d.ts', result '/users/username/projects/node_modules/moduleX/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name 'moduleX' was successfully resolved to '/users/username/projects/node_modules/moduleX/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] File '/users/username/projects/app/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] ======== Resolving module '../common/moduleB' from '/users/username/projects/app/appB.ts'. ======== Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. Info seq [hh:mm:ss:mss] Loading module as file / folder, candidate module location '/users/username/projects/common/moduleB', target file types: TypeScript, Declaration. Info seq [hh:mm:ss:mss] File '/users/username/projects/common/moduleB.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] ======== Module name '../common/moduleB' was successfully resolved to '/users/username/projects/common/moduleB.ts'. ======== +Info seq [hh:mm:ss:mss] File '/users/username/projects/common/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/username/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/username/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module 'moduleX' from '/users/username/projects/common/moduleB.ts'. ======== Info seq [hh:mm:ss:mss] Using compiler options of project reference redirect '/users/username/projects/common/tsconfig.json'. @@ -132,12 +153,18 @@ Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for pre Info seq [hh:mm:ss:mss] Directory '/users/username/projects/common/node_modules' does not exist, skipping all lookups in it. Info seq [hh:mm:ss:mss] Resolution for module 'moduleX' was found in cache from location '/users/username/projects'. Info seq [hh:mm:ss:mss] ======== Module name 'moduleX' was successfully resolved to '/users/username/projects/node_modules/moduleX/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/app/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/app/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/common/node_modules 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/moduleX/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/app/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/common/package.json 2000 undefined Project: /users/username/projects/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/app/node_modules/@types 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/app/node_modules/@types 1 undefined Project: /users/username/projects/app/tsconfig.json WatchType: Type roots @@ -295,10 +322,20 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/app/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/app/package.json: *new* + {"pollingInterval":2000} /users/username/projects/common/node_modules: *new* {"pollingInterval":500} +/users/username/projects/common/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/node_modules/moduleX/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/app/appA.ts: *new* diff --git a/tests/baselines/reference/tsserver/resolutionCache/should-remove-the-module-not-found-error.js b/tests/baselines/reference/tsserver/resolutionCache/should-remove-the-module-not-found-error.js index f127feefebd9b..61b350ef2a577 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/should-remove-the-module-not-found-error.js +++ b/tests/baselines/reference/tsserver/resolutionCache/should-remove-the-module-not-found-error.js @@ -23,6 +23,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/moduleFile 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -56,12 +58,16 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/jsconfig.json: *new* {"pollingInterval":2000} /users/username/projects/project/moduleFile: *new* {"pollingInterval":500} /users/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} /users/username/projects/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -209,10 +215,14 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} /users/username/projects/project/jsconfig.json: {"pollingInterval":2000} /users/username/projects/project/node_modules/@types: {"pollingInterval":500} +/users/username/projects/project/package.json: + {"pollingInterval":2000} /users/username/projects/project/tsconfig.json: {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js index 292cbd5d6df49..636112821dc0b 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -118,6 +118,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/somefolder/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/typings 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/typings 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -226,12 +230,20 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/somefolder: *new* {"pollingInterval":500} /user/username/projects/myproject/src/node_modules: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/somefolder/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/somefolder: *new* {"pollingInterval":500} /user/username/somefolder: *new* diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js index 1d9df42601b7d..7e7fb1aff19f1 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js @@ -121,6 +121,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/typings 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/typings 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/somefolder/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/typings 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/typings 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -232,12 +236,20 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/somefolder: *new* {"pollingInterval":500} /user/username/projects/myproject/src/node_modules: *new* {"pollingInterval":500} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/somefolder/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} /user/username/projects/somefolder: *new* {"pollingInterval":500} /user/username/somefolder: *new* diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js index 139bb14d21c87..6ff7888abf83c 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js @@ -63,6 +63,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us 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: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/somemodule/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -160,8 +164,16 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/somemodule/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js index 7654fc719e728..4170dae3f89d4 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js @@ -40,6 +40,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us 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: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/somemodule/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -78,10 +82,18 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/somemodule/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js index 5083f786addda..db266c8debedf 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js +++ b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js @@ -54,6 +54,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types/lib1/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Missing file 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 @@ -197,6 +202,16 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types/lib1/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} FsWatches:: /users/username/projects/project/tsconfig.json: *new* @@ -274,6 +289,11 @@ 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] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/node_modules/@types/lib1/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/node_modules/@types/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/node_modules/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution 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 (1) @@ -323,6 +343,18 @@ PolledWatches:: /users/username/projects/node_modules/@types: {"pollingInterval":500} +PolledWatches *deleted*:: +/users/username/projects/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types/lib1/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types/package.json: + {"pollingInterval":2000} +/users/username/projects/project/node_modules/package.json: + {"pollingInterval":2000} +/users/username/projects/project/package.json: + {"pollingInterval":2000} + FsWatches:: /users/username/projects/project/tsconfig.json: {} @@ -386,6 +418,11 @@ 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] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types/lib2/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -430,6 +467,36 @@ Info seq [hh:mm:ss:mss] event: } After running Timeout callback:: count: 0 +PolledWatches:: +/a/lib/lib.d.ts: + {"pollingInterval":500} +/users/username/projects/node_modules: + {"pollingInterval":500} +/users/username/projects/node_modules/@types: + {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types/lib2/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/project/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/users/username/projects/project/tsconfig.json: + {} + +FsWatchesRecursive:: +/users/username/projects/project: + {} +/users/username/projects/project/node_modules: + {} +/users/username/projects/project/node_modules/@types: + {} + Timeout callback:: count: 0 14: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation *deleted* diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js index 553c212be2de0..37eede53c103e 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js @@ -82,6 +82,13 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots @@ -184,22 +191,36 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules: *new* {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -347,20 +368,34 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules: @@ -404,6 +439,8 @@ Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations @@ -462,14 +499,32 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/myproject/javascript/node_modules: diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index bc7f4255e9069..a63f1c70e7b12 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -84,6 +84,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots @@ -186,20 +193,34 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules: *new* {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js index a1e79afe4cd72..899cb9eaef84b 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js @@ -80,6 +80,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots @@ -183,14 +192,32 @@ After request PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -323,14 +350,32 @@ Before running Timeout callback:: count: 2 PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -384,6 +429,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -433,20 +480,40 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules: *new* {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js index 9a29b0c5f9317..c748e5c99d24a 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js @@ -104,6 +104,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots @@ -210,22 +217,36 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules: *new* {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -388,20 +409,34 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules: {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules: @@ -450,6 +485,8 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations @@ -514,14 +551,32 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/myproject/javascript/node_modules: diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index 884f1782615d3..6133ffdf46342 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -105,6 +105,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots @@ -211,20 +218,34 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules: *new* {"pollingInterval":500} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -396,6 +417,8 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations @@ -460,14 +483,32 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/myproject/javascript/node_modules: diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js index e79f746c729d3..8adebc8a7a2ca 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js @@ -95,6 +95,15 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 un Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages 0 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots @@ -202,14 +211,32 @@ After request PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -342,14 +369,32 @@ Before running Timeout callback:: count: 2 PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -409,6 +454,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -458,20 +505,40 @@ PolledWatches:: {"pollingInterval":500} /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/node_modules: *new* {"pollingInterval":500} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules: *new* {"pollingInterval":500} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -638,6 +705,8 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations @@ -702,14 +771,32 @@ After running Timeout callback:: count: 0 PolledWatches:: /users/username/projects/myproject/javascript/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/package.json: + {"pollingInterval":2000} /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/package.json: + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/package.json: *new* + {"pollingInterval":2000} /users/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/users/username/projects/myproject/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /users/username/projects/myproject/javascript/node_modules: diff --git a/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js b/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js index b74f3f6170a55..dbb72beeac5da 100644 --- a/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js +++ b/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js @@ -79,6 +79,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/a/c/fc.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/a/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] FileWatcher:: Added:: WatchInfo: /users/username/projects/c/package.json 2000 undefined Project: /users/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/a/package.json 2000 undefined Project: /users/username/projects/a/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/a/node_modules/@types 1 undefined Project: /users/username/projects/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/a/node_modules/@types 1 undefined Project: /users/username/projects/a/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/a/tsconfig.json WatchType: Type roots @@ -179,8 +182,14 @@ After request PolledWatches:: /users/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/a/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/c/package.json: *new* + {"pollingInterval":2000} /users/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -253,6 +262,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/p Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/b 1 undefined Config: /users/username/projects/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/b/c/fc.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/c/package.json 2000 undefined Project: /users/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/b/package.json 2000 undefined Project: /users/username/projects/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/b/node_modules/@types 1 undefined Project: /users/username/projects/b/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/b/node_modules/@types 1 undefined Project: /users/username/projects/b/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/b/tsconfig.json WatchType: Type roots @@ -359,10 +371,18 @@ After request PolledWatches:: /users/username/projects/a/node_modules/@types: {"pollingInterval":500} +/users/username/projects/a/package.json: + {"pollingInterval":2000} /users/username/projects/b/node_modules/@types: *new* {"pollingInterval":500} +/users/username/projects/b/package.json: *new* + {"pollingInterval":2000} +/users/username/projects/c/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -452,10 +472,18 @@ After request PolledWatches:: /users/username/projects/a/node_modules/@types: {"pollingInterval":500} +/users/username/projects/a/package.json: + {"pollingInterval":2000} /users/username/projects/b/node_modules/@types: {"pollingInterval":500} +/users/username/projects/b/package.json: + {"pollingInterval":2000} +/users/username/projects/c/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -542,10 +570,18 @@ After request PolledWatches:: /users/username/projects/a/node_modules/@types: {"pollingInterval":500} +/users/username/projects/a/package.json: + {"pollingInterval":2000} /users/username/projects/b/node_modules/@types: {"pollingInterval":500} +/users/username/projects/b/package.json: + {"pollingInterval":2000} +/users/username/projects/c/package.json: + {"pollingInterval":2000} /users/username/projects/node_modules/@types: {"pollingInterval":500} +/users/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js b/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js index 6795a9635d768..2e78137250870 100644 --- a/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js +++ b/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js @@ -61,6 +61,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/temp/replay/axios-s Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/temp/replay/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/temp/replay/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/lib/core/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -87,6 +90,7 @@ Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 depe Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/node_modules/follow-redirects/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -117,6 +121,10 @@ After request PolledWatches:: C:/a/lib/lib.d.ts: *new* {"pollingInterval":500} +C:/temp/replay/axios-src/lib/core/package.json: *new* + {"pollingInterval":2000} +C:/temp/replay/axios-src/lib/package.json: *new* + {"pollingInterval":2000} c:/temp/node_modules/@types: *new* {"pollingInterval":500} c:/temp/replay/axios-src/jsconfig.json: *new* @@ -145,7 +153,9 @@ c:/temp/replay/tsconfig.json: *new* {"pollingInterval":2000} FsWatches:: -c:/temp/replay/axios-src/package.json: *new* +C:/temp/replay/axios-src/node_modules/follow-redirects/package.json: *new* + {} +C:/temp/replay/axios-src/package.json: *new* {} FsWatchesRecursive:: @@ -258,6 +268,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/node_modules/follow-redirects/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/lib/core/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/lib/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject2* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -302,6 +315,12 @@ Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoIm Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/lib/core/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/lib/core/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: c:/temp/replay/axios-src/lib/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -313,6 +332,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: c:/temp/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: c:/temp/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/node_modules/follow-redirects/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: C:/temp/replay/axios-src/node_modules/follow-redirects/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) @@ -331,6 +352,10 @@ After request PolledWatches:: C:/a/lib/lib.d.ts: {"pollingInterval":500} +C:/temp/replay/axios-src/lib/core/package.json: + {"pollingInterval":2000} +C:/temp/replay/axios-src/lib/package.json: + {"pollingInterval":2000} c:/temp/node_modules: *new* {"pollingInterval":500} c:/temp/node_modules/@types: @@ -371,14 +396,14 @@ c:/temp/replay/tsconfig.json: {"pollingInterval":2000} FsWatches:: -C:/temp/replay/axios-src/node_modules/follow-redirects/package.json: *new* +C:/temp/replay/axios-src/node_modules/follow-redirects/package.json: + {} +C:/temp/replay/axios-src/package.json: {} c:/temp/replay/axios-src/lib/core: *new* {} c:/temp/replay/axios-src/lib/core/settle.js: *new* {} -c:/temp/replay/axios-src/package.json: - {} FsWatchesRecursive:: c:/temp/replay/axios-src/node_modules: @@ -438,6 +463,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/ax Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core/AxiosHeaders.js 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core 0 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core 0 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/lib/core/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/lib/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/package.json 2000 undefined Project: /dev/null/inferredProject3* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject3* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/temp/replay/axios-src/lib/core/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots @@ -464,6 +492,7 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: C:/temp/replay/axios-src/node_modules/follow-redirects/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) Info seq [hh:mm:ss:mss] Files (1) @@ -573,6 +602,10 @@ After request PolledWatches:: C:/a/lib/lib.d.ts: {"pollingInterval":500} +C:/temp/replay/axios-src/lib/core/package.json: + {"pollingInterval":2000} +C:/temp/replay/axios-src/lib/package.json: + {"pollingInterval":2000} c:/temp/node_modules: {"pollingInterval":500} c:/temp/node_modules/@types: @@ -615,14 +648,14 @@ c:/temp/replay/tsconfig.json: FsWatches:: C:/temp/replay/axios-src/node_modules/follow-redirects/package.json: {} +C:/temp/replay/axios-src/package.json: + {} c:/temp/replay/axios-src/lib/core: {} c:/temp/replay/axios-src/lib/core/AxiosHeaders.js: *new* {} c:/temp/replay/axios-src/lib/core/settle.js: {} -c:/temp/replay/axios-src/package.json: - {} FsWatchesRecursive:: c:/temp/replay/axios-src/node_modules: @@ -720,6 +753,10 @@ After request PolledWatches:: C:/a/lib/lib.d.ts: {"pollingInterval":500} +C:/temp/replay/axios-src/lib/core/package.json: + {"pollingInterval":2000} +C:/temp/replay/axios-src/lib/package.json: + {"pollingInterval":2000} c:/temp/node_modules: {"pollingInterval":500} c:/temp/node_modules/@types: @@ -762,12 +799,12 @@ c:/temp/replay/tsconfig.json: FsWatches:: C:/temp/replay/axios-src/node_modules/follow-redirects/package.json: {} +C:/temp/replay/axios-src/package.json: + {} c:/temp/replay/axios-src/lib/core: {} c:/temp/replay/axios-src/lib/core/AxiosHeaders.js: {} -c:/temp/replay/axios-src/package.json: - {} FsWatches *deleted*:: c:/temp/replay/axios-src/lib/core/settle.js: diff --git a/tests/baselines/reference/tsserver/symlinkCache/contains-symlinks-discovered-by-project-references-resolution-after-program-creation.js b/tests/baselines/reference/tsserver/symlinkCache/contains-symlinks-discovered-by-project-references-resolution-after-program-creation.js index 84de33587e94d..12fcfe026b496 100644 --- a/tests/baselines/reference/tsserver/symlinkCache/contains-symlinks-discovered-by-project-references-resolution-after-program-creation.js +++ b/tests/baselines/reference/tsserver/symlinkCache/contains-symlinks-discovered-by-project-references-resolution-after-program-creation.js @@ -97,6 +97,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app/dep Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app/dep 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/package.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /packages/app/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) @@ -266,6 +267,8 @@ PolledWatches:: {"pollingInterval":500} /packages/app/dep: *new* {"pollingInterval":500} +/packages/app/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /packages/app/tsconfig.json: *new* diff --git a/tests/baselines/reference/tsserver/syntaxOperations/file-is-removed-and-added-with-different-content.js b/tests/baselines/reference/tsserver/syntaxOperations/file-is-removed-and-added-with-different-content.js index 195796440abfb..2217a3776e048 100644 --- a/tests/baselines/reference/tsserver/syntaxOperations/file-is-removed-and-added-with-different-content.js +++ b/tests/baselines/reference/tsserver/syntaxOperations/file-is-removed-and-added-with-different-content.js @@ -218,6 +218,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -270,10 +272,14 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -342,10 +348,14 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -555,6 +565,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -608,8 +620,12 @@ PolledWatches:: PolledWatches *deleted*:: /user/username/projects/myproject/node_modules: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -664,6 +680,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json projectStateVersion: 4 projectProgramVersion: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -716,10 +734,14 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -788,10 +810,14 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js index 00c47547394cd..ff13cdcaa8d15 100644 --- a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js @@ -80,6 +80,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/proje Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src 1 undefined Config: /users/user/projects/myproject/src/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/myproject/src/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] FileWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/package.json 2000 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/myproject/package.json 2000 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/node_modules/@types 1 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/node_modules/@types 1 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/myproject/node_modules/@types 1 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: Type roots @@ -181,10 +184,16 @@ After request PolledWatches:: /users/user/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/users/user/projects/myproject/package.json: *new* + {"pollingInterval":2000} /users/user/projects/myproject/src/node_modules/@types: *new* {"pollingInterval":500} +/users/user/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /users/user/projects/node_modules/@types: *new* {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js index 2d3fe263ac8ab..bfc8a2f30868e 100644 --- a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js +++ b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js @@ -60,6 +60,9 @@ Info seq [hh:mm:ss:mss] Config: /a/b/jsconfig.json : { Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b 1 undefined Config: /a/b/jsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b 1 undefined Config: /a/b/jsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/jsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/typings/node_modules/@types/bar/package.json 2000 undefined Project: /a/b/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/typings/node_modules/@types/package.json 2000 undefined Project: /a/b/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/typings/node_modules/package.json 2000 undefined Project: /a/b/jsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /a/b/jsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/jsconfig.json' (Configured) @@ -79,6 +82,12 @@ TI:: Creating typing installer PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} +/a/typings/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/a/typings/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/typings/node_modules/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/b/jsconfig.json: *new* @@ -352,6 +361,12 @@ PolledWatches:: {"pollingInterval":500} /a/lib/lib.d.ts: {"pollingInterval":500} +/a/typings/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/a/typings/node_modules/@types/package.json: + {"pollingInterval":2000} +/a/typings/node_modules/package.json: + {"pollingInterval":2000} FsWatches:: /a/b/jsconfig.json: 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 400bed129194a..5cd2c355feb45 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 @@ -328,6 +328,11 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/commander/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/ember__component/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) @@ -440,6 +445,24 @@ Info seq [hh:mm:ss:mss] event: TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 2 +PolledWatches:: +/a/b/bower_components: + {"pollingInterval":500} +/a/b/node_modules: + {"pollingInterval":500} +/a/cache/node_modules/@types/commander/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/@types/ember__component/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/@types/node/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/package.json: *new* + {"pollingInterval":2000} +/a/lib/lib.d.ts: + {"pollingInterval":500} + Timeout callback:: count: 2 2: *ensureProjectForOpenFiles* *deleted* 3: /dev/null/inferredProject1* *new* 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 47d920c08d41a..4ffb4a9c5046a 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 @@ -26,6 +26,8 @@ Info seq [hh:mm:ss:mss] For info: /a/b/app.js :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/fooo/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -43,6 +45,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: Creating typing installer PolledWatches:: +/a/b/node_modules/fooo/package.json: *new* + {"pollingInterval":2000} +/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} /a/lib/lib.d.ts: *new* {"pollingInterval":500} @@ -187,6 +193,10 @@ After request PolledWatches:: /a/b/bower_components: *new* {"pollingInterval":500} +/a/b/node_modules/fooo/package.json: + {"pollingInterval":2000} +/a/b/node_modules/package.json: + {"pollingInterval":2000} /a/lib/lib.d.ts: {"pollingInterval":500} @@ -330,6 +340,8 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tmp/node_modules/foo/a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tmp/node_modules/foo/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) @@ -447,6 +459,24 @@ Info seq [hh:mm:ss:mss] event: TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 2 +PolledWatches:: +/a/b/bower_components: + {"pollingInterval":500} +/a/b/node_modules/fooo/package.json: + {"pollingInterval":2000} +/a/b/node_modules/package.json: + {"pollingInterval":2000} +/a/lib/lib.d.ts: + {"pollingInterval":500} +/tmp/node_modules/foo/a/package.json: *new* + {"pollingInterval":2000} +/tmp/node_modules/foo/package.json: *new* + {"pollingInterval":2000} + +FsWatchesRecursive:: +/a/b/node_modules: + {} + Timeout callback:: count: 2 2: *ensureProjectForOpenFiles* *deleted* 3: /dev/null/inferredProject1* *new* diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js index 40d3d5a1f7c27..8f22fbf89c6e1 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js @@ -22,6 +22,8 @@ Info seq [hh:mm:ss:mss] For info: /a/b/app.js :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/fooo/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -39,6 +41,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: Creating typing installer PolledWatches:: +/a/b/node_modules/fooo/package.json: *new* + {"pollingInterval":2000} +/a/b/node_modules/package.json: *new* + {"pollingInterval":2000} /a/lib/lib.d.ts: *new* {"pollingInterval":500} @@ -183,6 +189,10 @@ After request PolledWatches:: /a/b/bower_components: *new* {"pollingInterval":500} +/a/b/node_modules/fooo/package.json: + {"pollingInterval":2000} +/a/b/node_modules/package.json: + {"pollingInterval":2000} /a/lib/lib.d.ts: {"pollingInterval":500} @@ -317,6 +327,7 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tmp/node_modules/foo/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (3) @@ -426,6 +437,22 @@ Info seq [hh:mm:ss:mss] event: TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 2 +PolledWatches:: +/a/b/bower_components: + {"pollingInterval":500} +/a/b/node_modules/fooo/package.json: + {"pollingInterval":2000} +/a/b/node_modules/package.json: + {"pollingInterval":2000} +/a/lib/lib.d.ts: + {"pollingInterval":500} +/tmp/node_modules/foo/package.json: *new* + {"pollingInterval":2000} + +FsWatchesRecursive:: +/a/b/node_modules: + {} + Timeout callback:: count: 2 2: *ensureProjectForOpenFiles* *deleted* 3: /dev/null/inferredProject1* *new* diff --git a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js index 7837fc8f7fc11..e7ae11fac743e 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js @@ -395,6 +395,9 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/commander/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -533,6 +536,24 @@ Info seq [hh:mm:ss:mss] event: } After running Timeout callback:: count: 0 +PolledWatches:: +/a/b/bower_components: + {"pollingInterval":500} +/a/b/node_modules: + {"pollingInterval":500} +/a/cache/node_modules/@types/commander/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/package.json: *new* + {"pollingInterval":2000} +/a/lib/lib.d.ts: + {"pollingInterval":500} + +FsWatches:: +/a/b/package.json: + {} + Projects:: /dev/null/inferredProject1* (Inferred) *changed* projectStateVersion: 2 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js index e6cc57f24ee93..23ba41d87edab 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js @@ -310,6 +310,9 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/commander/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -448,6 +451,24 @@ Info seq [hh:mm:ss:mss] event: } After running Timeout callback:: count: 0 +PolledWatches:: +/a/bower_components: + {"pollingInterval":500} +/a/cache/node_modules/@types/commander/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/package.json: *new* + {"pollingInterval":2000} +/a/lib/lib.d.ts: + {"pollingInterval":500} +/a/node_modules: + {"pollingInterval":500} + +FsWatches:: +/a/package.json: + {} + Projects:: /dev/null/inferredProject1* (Inferred) *changed* projectStateVersion: 2 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 0a058c251a1f3..3969a1b0a1b1b 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 @@ -33,6 +33,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/commander/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -64,6 +69,8 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/a/b/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/b/package.json: *new* + {"pollingInterval":2000} /user/username/projects/a/b/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/a/jsconfig.json: *new* @@ -72,10 +79,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/a/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/a/package.json: *new* + {"pollingInterval":2000} /user/username/projects/a/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/node_modules/commander/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatchesRecursive:: /user/username/projects/node_modules: *new* @@ -224,6 +239,8 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/a/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/a/b/package.json: + {"pollingInterval":2000} /user/username/projects/a/b/tsconfig.json: {"pollingInterval":2000} /user/username/projects/a/jsconfig.json: @@ -232,10 +249,18 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/a/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/node_modules/commander/package.json: + {"pollingInterval":2000} +/user/username/projects/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatchesRecursive:: /user/username/projects/node_modules: @@ -364,6 +389,8 @@ Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/cache/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/cache/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/commander/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -479,6 +506,8 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/a/b/node_modules/@types: {"pollingInterval":500} +/user/username/projects/a/b/package.json: + {"pollingInterval":2000} /user/username/projects/a/b/tsconfig.json: {"pollingInterval":2000} /user/username/projects/a/jsconfig.json: @@ -487,10 +516,20 @@ PolledWatches:: {"pollingInterval":500} /user/username/projects/a/node_modules/@types: {"pollingInterval":500} +/user/username/projects/a/package.json: + {"pollingInterval":2000} /user/username/projects/a/tsconfig.json: {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/user/username/projects/node_modules/commander/package.json: + {"pollingInterval":2000} +/user/username/projects/node_modules/package.json: + {"pollingInterval":2000} FsWatchesRecursive:: /user/username/projects/a/cache/node_modules: *new* diff --git a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js index a431077faabf3..43cd020b63628 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js @@ -301,6 +301,9 @@ Before running Timeout callback:: count: 2 Info seq [hh:mm:ss:mss] Running: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/commander/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/cache/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -439,6 +442,24 @@ Info seq [hh:mm:ss:mss] event: } After running Timeout callback:: count: 0 +PolledWatches:: +/a/bower_components: + {"pollingInterval":500} +/a/cache/node_modules/@types/commander/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/a/cache/node_modules/package.json: *new* + {"pollingInterval":2000} +/a/lib/lib.d.ts: + {"pollingInterval":500} +/a/node_modules: + {"pollingInterval":500} + +FsWatches:: +/a/package.json: + {} + Projects:: /dev/null/inferredProject1* (Inferred) *changed* projectStateVersion: 2 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-errors.js b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-errors.js index 881f6cc85ada1..fcbcb5243c596 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-errors.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-errors.js @@ -58,6 +58,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us 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: /user/username/projects/myproject/src 1 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":[]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots @@ -136,8 +141,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -202,8 +217,18 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/node_modules/bar/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js index baaac8bff1501..81d1539aab128 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js @@ -86,6 +86,11 @@ Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/proj Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 {"excludeDirectories":["node_modules"]} WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots @@ -161,8 +166,18 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -223,8 +238,18 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options.js b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options.js index 82206f0f53aa0..a933e9eaccc34 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options.js @@ -57,6 +57,11 @@ Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/proj 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: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/project.csproj WatchType: Type roots @@ -132,8 +137,18 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -196,8 +211,18 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: + {"pollingInterval":2000} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-errors.js b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-errors.js index e6f5a3a2c4c06..fc7785f797170 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-errors.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-errors.js @@ -71,6 +71,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us 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: /user/username/projects/myproject/src 1 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":[]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -112,14 +117,24 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js index 51920355326fa..8ab0b7a0ec210 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js @@ -99,6 +99,11 @@ Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/proj Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 {"excludeDirectories":["node_modules"]} WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -137,14 +142,24 @@ After request PolledWatches:: /user/username/projects/myproject/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options.js b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options.js index 09d005d305a35..75d2d7b426d7c 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options.js @@ -70,6 +70,11 @@ Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/proj 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: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /dev/null/inferredProject1* WatchType: Type roots @@ -108,14 +113,24 @@ After request PolledWatches:: /user/username/projects/myproject/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/jsconfig.json: *new* {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/src/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/perVolumeCasing-and-new-file-addition.js b/tests/baselines/reference/tsserver/watchEnvironment/perVolumeCasing-and-new-file-addition.js index b0ed962899ee6..a8d1e5aba34b2 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/perVolumeCasing-and-new-file-addition.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/perVolumeCasing-and-new-file-addition.js @@ -62,6 +62,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Volumes/git/proj Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Volumes/git/projects/project 1 undefined Config: /Volumes/git/projects/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /Volumes/git/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] FileWatcher:: Added:: WatchInfo: /Volumes/git/projects/project/package.json 2000 undefined Project: /Volumes/git/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Volumes/git/projects/project/node_modules/@types 1 undefined Project: /Volumes/git/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Volumes/git/projects/project/node_modules/@types 1 undefined Project: /Volumes/git/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Volumes/git/projects/node_modules/@types 1 undefined Project: /Volumes/git/projects/project/tsconfig.json WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names-with-i.js b/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names-with-i.js index 2487f28955c27..227798f8d56af 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names-with-i.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names-with-i.js @@ -38,6 +38,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/i/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /User/userName/Projects/i/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /User/userName/Projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/i/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/i/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -75,12 +77,16 @@ PolledWatches:: {"pollingInterval":500} /User/userName/Projects/i/node_modules/@types: *new* {"pollingInterval":500} +/User/userName/Projects/i/package.json: *new* + {"pollingInterval":2000} /User/userName/Projects/i/tsconfig.json: *new* {"pollingInterval":2000} /User/userName/Projects/node_modules: *new* {"pollingInterval":500} /User/userName/Projects/node_modules/@types: *new* {"pollingInterval":500} +/User/userName/Projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names.js b/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names.js index f636fcf04e406..05c4d41309fef 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/project-with-ascii-file-names.js @@ -38,6 +38,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/I/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /User/userName/Projects/I/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /User/userName/Projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/I/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/I/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -75,12 +77,16 @@ PolledWatches:: {"pollingInterval":500} /User/userName/Projects/I/node_modules/@types: *new* {"pollingInterval":500} +/User/userName/Projects/I/package.json: *new* + {"pollingInterval":2000} /User/userName/Projects/I/tsconfig.json: *new* {"pollingInterval":2000} /User/userName/Projects/node_modules: *new* {"pollingInterval":500} /User/userName/Projects/node_modules/@types: *new* {"pollingInterval":500} +/User/userName/Projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/project-with-unicode-file-names.js b/tests/baselines/reference/tsserver/watchEnvironment/project-with-unicode-file-names.js index 0594fc8c86fbd..5b71fe62fd8fa 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/project-with-unicode-file-names.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/project-with-unicode-file-names.js @@ -38,6 +38,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/Ä°/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /User/userName/Projects/Ä°/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /User/userName/Projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/Ä°/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/Ä°/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /User/userName/Projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -73,12 +75,16 @@ PolledWatches:: {"pollingInterval":500} /User/userName/Projects/node_modules/@types: *new* {"pollingInterval":500} +/User/userName/Projects/package.json: *new* + {"pollingInterval":2000} /User/userName/Projects/Ä°/jsconfig.json: *new* {"pollingInterval":2000} /User/userName/Projects/Ä°/node_modules: *new* {"pollingInterval":500} /User/userName/Projects/Ä°/node_modules/@types: *new* {"pollingInterval":500} +/User/userName/Projects/Ä°/package.json: *new* + {"pollingInterval":2000} /User/userName/Projects/Ä°/tsconfig.json: *new* {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/watchEnvironment/recursive-directory-does-not-watch-files-starting-with-dot-in-node_modules.js b/tests/baselines/reference/tsserver/watchEnvironment/recursive-directory-does-not-watch-files-starting-with-dot-in-node_modules.js index 63ebb2a7bd015..5d05cb63e37d6 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/recursive-directory-does-not-watch-files-starting-with-dot-in-node_modules.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/recursive-directory-does-not-watch-files-starting-with-dot-in-node_modules.js @@ -68,6 +68,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/proje Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/src 1 undefined Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules 1 undefined Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules 1 undefined Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/username/project/src/package.json 2000 undefined Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/username/project/package.json 2000 undefined Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 undefined Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 undefined Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/username/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -163,6 +165,10 @@ After request PolledWatches:: /a/username/project/node_modules/@types: *new* {"pollingInterval":500} +/a/username/project/package.json: *new* + {"pollingInterval":2000} +/a/username/project/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js index 9d1ba7d1f55ba..0755deb4dac6b 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js @@ -72,6 +72,8 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/username/projec Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/src 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/src 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /a/username/project/src/package.json 2000 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/username/project/package.json 2000 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/username/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -165,6 +167,12 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/a/username/project/package.json: *new* + {"pollingInterval":2000} +/a/username/project/src/package.json: *new* + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: *new* {} @@ -316,6 +324,12 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/a/username/project/package.json: + {"pollingInterval":2000} +/a/username/project/src/package.json: + {"pollingInterval":2000} + FsWatches:: /a/lib/lib.d.ts: {} diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js index 39a8069ff731d..acf866932caf3 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js @@ -72,6 +72,8 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/username/projec Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/src 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/src 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /a/username/project/src/package.json 2000 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/username/project/package.json 2000 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/username/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -168,6 +170,10 @@ After request PolledWatches:: /a/username/project/node_modules/@types: *new* {"pollingInterval":500} +/a/username/project/package.json: *new* + {"pollingInterval":2000} +/a/username/project/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -315,6 +321,10 @@ After running Timeout callback:: count: 0 PolledWatches:: /a/username/project/node_modules/@types: {"pollingInterval":500} +/a/username/project/package.json: + {"pollingInterval":2000} +/a/username/project/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js index 1419bbc6a683c..b5c7b92be1bab 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js @@ -72,6 +72,8 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/username/projec Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/src 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/src 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /a/username/project/src/package.json 2000 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/username/project/package.json 2000 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/username/project/node_modules/@types 1 {"synchronousWatchDirectory":true} Project: /a/username/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/username/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -170,8 +172,12 @@ PolledWatches:: {"pollingInterval":500} /a/username/project/node_modules/@types: *new* {"pollingInterval":500} +/a/username/project/package.json: *new* + {"pollingInterval":2000} /a/username/project/src: *new* {"pollingInterval":500} +/a/username/project/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -289,8 +295,12 @@ PolledWatches:: {"pollingInterval":500} /a/username/project/node_modules/@types: {"pollingInterval":500} +/a/username/project/package.json: + {"pollingInterval":2000} /a/username/project/src: {"pollingInterval":500} +/a/username/project/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js index 18f48e58dec17..752b8f65e7d65 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js @@ -66,6 +66,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /wo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations 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] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/@types/random-seed/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/@types/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/src/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/src/node_modules/@types 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/src/node_modules/@types 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/@types 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Type roots @@ -162,10 +167,20 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/workspaces/somerepo/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/@types/random-seed/package.json: *new* + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/package.json: *new* + {"pollingInterval":2000} +/workspaces/somerepo/package.json: *new* + {"pollingInterval":2000} /workspaces/somerepo/src/node_modules: *new* {"pollingInterval":500} /workspaces/somerepo/src/node_modules/@types: *new* {"pollingInterval":500} +/workspaces/somerepo/src/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* @@ -315,10 +330,20 @@ PolledWatches:: {"pollingInterval":500} /workspaces/somerepo/node_modules/@types: *new* {"pollingInterval":500} +/workspaces/somerepo/node_modules/@types/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/@types/random-seed/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/package.json: + {"pollingInterval":2000} /workspaces/somerepo/src/node_modules: {"pollingInterval":500} /workspaces/somerepo/src/node_modules/@types: {"pollingInterval":500} +/workspaces/somerepo/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: @@ -396,6 +421,9 @@ Before running Timeout callback:: count: 5 Invoking Timeout callback:: timeoutId:: 17:: checkOne Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /workspaces/somerepo/src/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /workspaces/somerepo/node_modules/@types/random-seed/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /workspaces/somerepo/node_modules/@types/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /workspaces/somerepo/node_modules/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /workspaces/somerepo/src/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/workspaces/somerepo/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -421,6 +449,36 @@ Info seq [hh:mm:ss:mss] event: } After running Timeout callback:: count: 3 +PolledWatches:: +/workspaces/somerepo/node_modules: + {"pollingInterval":500} +/workspaces/somerepo/node_modules/@types: + {"pollingInterval":500} +/workspaces/somerepo/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/src/node_modules: + {"pollingInterval":500} +/workspaces/somerepo/src/node_modules/@types: + {"pollingInterval":500} +/workspaces/somerepo/src/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/workspaces/somerepo/node_modules/@types/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/@types/random-seed/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {"inode":12} +/workspaces/somerepo/src: + {"inode":3} +/workspaces/somerepo/src/tsconfig.json: + {"inode":4} + Timeout callback:: count: 3 16: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* 12: /workspaces/somerepo/src/tsconfig.json @@ -568,10 +626,14 @@ export function randomSeed(): string; PolledWatches:: +/workspaces/somerepo/package.json: + {"pollingInterval":2000} /workspaces/somerepo/src/node_modules: {"pollingInterval":500} /workspaces/somerepo/src/node_modules/@types: {"pollingInterval":500} +/workspaces/somerepo/src/package.json: + {"pollingInterval":2000} PolledWatches *deleted*:: /workspaces/somerepo/node_modules: @@ -634,6 +696,9 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/@types/random-seed/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/@types/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /workspaces/somerepo/src/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/workspaces/somerepo/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -663,6 +728,34 @@ Info seq [hh:mm:ss:mss] event: } After running Timeout callback:: count: 3 +PolledWatches:: +/workspaces/somerepo/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/@types/random-seed/package.json: *new* + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/package.json: *new* + {"pollingInterval":2000} +/workspaces/somerepo/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/src/node_modules: + {"pollingInterval":500} +/workspaces/somerepo/src/node_modules/@types: + {"pollingInterval":500} +/workspaces/somerepo/src/package.json: + {"pollingInterval":2000} + +FsWatches:: +/a/lib/lib.d.ts: + {"inode":12} +/workspaces/somerepo/node_modules: + {"inode":13} +/workspaces/somerepo/node_modules/@types: + {"inode":14} +/workspaces/somerepo/src: + {"inode":3} +/workspaces/somerepo/src/tsconfig.json: + {"inode":4} + Timeout callback:: count: 3 25: *ensureProjectForOpenFiles* *deleted* 26: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* @@ -757,10 +850,20 @@ Info seq [hh:mm:ss:mss] sysLog:: Elapsed:: *ms:: onTimerToUpdateChildWatches:: After running Timeout callback:: count: 3 PolledWatches:: +/workspaces/somerepo/node_modules/@types/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/@types/random-seed/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/node_modules/package.json: + {"pollingInterval":2000} +/workspaces/somerepo/package.json: + {"pollingInterval":2000} /workspaces/somerepo/src/node_modules: {"pollingInterval":500} /workspaces/somerepo/src/node_modules/@types: {"pollingInterval":500} +/workspaces/somerepo/src/package.json: + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js b/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js index edc8018322315..b32df9fcfbfd2 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js @@ -68,6 +68,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 500 undefined WatchType: Closed Script info 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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -170,10 +172,14 @@ After request PolledWatches:: /user/username/projects/myproject/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} /user/username/projects/myproject/tsconfig.json: *new* {"pollingInterval":500} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js index 610b6af89fbb4..4f6635ca19eec 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js @@ -83,6 +83,11 @@ Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/proj 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: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -180,8 +185,18 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js index 14923f8fa5636..0f6ae526a3db3 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js @@ -112,6 +112,11 @@ Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/proj Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 {"excludeDirectories":["node_modules"]} WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/bar/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] ExcludeWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -209,8 +214,18 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/node_modules/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/package.json: *new* + {"pollingInterval":2000} +/user/username/projects/myproject/src/package.json: *new* + {"pollingInterval":2000} /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} +/user/username/projects/package.json: *new* + {"pollingInterval":2000} FsWatches:: /a/lib/lib.d.ts: *new* From f9f46fdbdda67978bde8683d8453ebd765754969 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 21 Mar 2024 11:46:24 -0700 Subject: [PATCH 05/12] Update existing tests --- tests/baselines/reference/api/typescript.d.ts | 111 ++++++++++++++---- .../bundlerImportESM(module=esnext).js | 6 +- ...dlerNodeModules1(module=esnext).errors.txt | 6 +- .../bundlerNodeModules1(module=esnext).js | 3 +- .../bundlerNodeModules1(module=esnext).types | 4 +- ...erNodeModules1(module=preserve).errors.txt | 6 +- ...bundlerNodeModules1(module=preserve).types | 4 +- ...lback(moduleresolution=bundler).errors.txt | 29 ----- ...esolvepackagejsonexports=false).errors.txt | 31 ----- ...itions(resolvepackagejsonexports=false).js | 2 - ...resolvepackagejsonexports=true).errors.txt | 31 ----- ...ditions(resolvepackagejsonexports=true).js | 2 - ...lesExportsSpecifierGenerationConditions.js | 8 +- ...uleDetectionIsolatedModulesCjsFileScope.js | 3 +- .../reference/modulePreserve4.errors.txt | 41 ++++++- tests/baselines/reference/modulePreserve4.js | 7 ++ .../reference/modulePreserve4.symbols | 8 ++ .../baselines/reference/modulePreserve4.types | 14 ++- ...tionEmitDynamicImportWithPackageExports.js | 4 +- .../reference/nodeNextModuleResolution1.js | 3 +- .../reference/nodeNextModuleResolution2.js | 3 +- ...stic1(moduleresolution=bundler).errors.txt | 2 - tests/cases/compiler/modulePreserve4.ts | 3 + .../conditionalExportsResolutionFallback.ts | 1 + .../moduleResolution/customConditions.ts | 1 + .../resolvesWithoutExportsDiagnostic1.ts | 1 + 26 files changed, 183 insertions(+), 151 deletions(-) delete mode 100644 tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).errors.txt delete mode 100644 tests/baselines/reference/customConditions(resolvepackagejsonexports=false).errors.txt delete mode 100644 tests/baselines/reference/customConditions(resolvepackagejsonexports=true).errors.txt diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 1601e677d29d5..54a8ce152aa39 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -6006,19 +6006,67 @@ declare namespace ts { isSourceFileFromExternalLibrary(file: SourceFile): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; /** - * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import - * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may - * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other - * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no - * impact on module resolution, emit, or type checking. + * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution + * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes, + * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of + * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript. + * Some examples: + * + * ```ts + * // tsc foo.mts --module nodenext + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension + * + * // tsc foo.cts --module nodenext + * import {} from "mod"; + * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension + * + * // tsc foo.ts --module preserve --moduleResolution bundler + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` + * // supports conditional imports/exports + * + * // tsc foo.ts --module preserve --moduleResolution node10 + * import {} from "mod"; + * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` + * // does not support conditional imports/exports + * + * // tsc foo.ts --module commonjs --moduleResolution node10 + * import type {} from "mod" with { "resolution-mode": "import" }; + * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute + * ``` */ getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode; /** - * Calculates the final resolution mode for an import at some index within a file's `imports` list. This is the resolution mode - * explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In - * `--module node16` or `nodenext`, this may depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the - * input syntax of the reference. In other `module` modes, when overriding import attributes are not provided, this function returns - * `undefined`, as the result would have no impact on module resolution, emit, or type checking. + * Calculates the final resolution mode for an import at some index within a file's `imports` list. This function only returns a result + * when module resolution settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided + * via import attributes, which cause an `import` or `require` condition to be used during resolution regardless of module resolution + * settings. In absence of overriding attributes, and in modes that support differing resolution, the result indicates the syntax the + * usage would emit to JavaScript. Some examples: + * + * ```ts + * // tsc foo.mts --module nodenext + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension + * + * // tsc foo.cts --module nodenext + * import {} from "mod"; + * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension + * + * // tsc foo.ts --module preserve --moduleResolution bundler + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` + * // supports conditional imports/exports + * + * // tsc foo.ts --module preserve --moduleResolution node10 + * import {} from "mod"; + * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` + * // does not support conditional imports/exports + * + * // tsc foo.ts --module commonjs --moduleResolution node10 + * import type {} from "mod" with { "resolution-mode": "import" }; + * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute + * ``` */ getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode; getProjectReferences(): readonly ProjectReference[] | undefined; @@ -9366,24 +9414,43 @@ declare namespace ts { function getModeForResolutionAtIndex(file: SourceFile, index: number, compilerOptions: CompilerOptions): ResolutionMode; /** * Use `program.getModeForUsageLocation`, which retrieves the correct `compilerOptions`, instead of this function whenever possible. - * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import - * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may - * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other - * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no - * impact on module resolution, emit, or type checking. + * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution + * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes, + * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of + * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript. + * Some examples: + * + * ```ts + * // tsc foo.mts --module nodenext + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension + * + * // tsc foo.cts --module nodenext + * import {} from "mod"; + * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension + * + * // tsc foo.ts --module preserve --moduleResolution bundler + * import {} from "mod"; + * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` + * // supports conditional imports/exports + * + * // tsc foo.ts --module preserve --moduleResolution node10 + * import {} from "mod"; + * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` + * // does not support conditional imports/exports + * + * // tsc foo.ts --module commonjs --moduleResolution node10 + * import type {} from "mod" with { "resolution-mode": "import" }; + * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute + * ``` + * * @param file The file the import or import-like reference is contained within * @param usage The module reference string * @param compilerOptions The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options * should be the options of the referenced project, not the referencing project. * @returns The final resolution mode of the import */ - function getModeForUsageLocation( - file: { - impliedNodeFormat?: ResolutionMode; - }, - usage: StringLiteralLike, - compilerOptions: CompilerOptions, - ): ModuleKind.CommonJS | ModuleKind.ESNext | undefined; + function getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike, compilerOptions: CompilerOptions): ResolutionMode; function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[]; /** * A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the diff --git a/tests/baselines/reference/bundlerImportESM(module=esnext).js b/tests/baselines/reference/bundlerImportESM(module=esnext).js index 48e483322c215..486ca757bd2e3 100644 --- a/tests/baselines/reference/bundlerImportESM(module=esnext).js +++ b/tests/baselines/reference/bundlerImportESM(module=esnext).js @@ -16,6 +16,8 @@ import { esm } from "./esm.mjs"; //// [esm.mjs] export var esm = 0; //// [not-actually-cjs.cjs] -export {}; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //// [still-not-cjs.js] -export {}; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/bundlerNodeModules1(module=esnext).errors.txt b/tests/baselines/reference/bundlerNodeModules1(module=esnext).errors.txt index 69921a8ce1425..b25d226dacf5f 100644 --- a/tests/baselines/reference/bundlerNodeModules1(module=esnext).errors.txt +++ b/tests/baselines/reference/bundlerNodeModules1(module=esnext).errors.txt @@ -4,7 +4,7 @@ error TS6504: File '/node_modules/dual/index.cjs' is a JavaScript file. Did you error TS6504: File '/node_modules/dual/index.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because: Root file specified for compilation -/main.cts(1,15): error TS2305: Module '"dual"' has no exported member 'cjs'. +/main.cts(1,10): error TS2305: Module '"dual"' has no exported member 'esm'. /main.mts(1,15): error TS2305: Module '"dual"' has no exported member 'cjs'. /main.ts(1,15): error TS2305: Module '"dual"' has no exported member 'cjs'. @@ -54,6 +54,6 @@ error TS6504: File '/node_modules/dual/index.js' is a JavaScript file. Did you m ==== /main.cts (1 errors) ==== import { esm, cjs } from "dual"; - ~~~ -!!! error TS2305: Module '"dual"' has no exported member 'cjs'. + ~~~ +!!! error TS2305: Module '"dual"' has no exported member 'esm'. \ No newline at end of file diff --git a/tests/baselines/reference/bundlerNodeModules1(module=esnext).js b/tests/baselines/reference/bundlerNodeModules1(module=esnext).js index 1272b9f38f865..c870e2e452261 100644 --- a/tests/baselines/reference/bundlerNodeModules1(module=esnext).js +++ b/tests/baselines/reference/bundlerNodeModules1(module=esnext).js @@ -42,4 +42,5 @@ export {}; //// [main.mjs] export {}; //// [main.cjs] -export {}; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/bundlerNodeModules1(module=esnext).types b/tests/baselines/reference/bundlerNodeModules1(module=esnext).types index 4fd828baaa40b..2154e18069292 100644 --- a/tests/baselines/reference/bundlerNodeModules1(module=esnext).types +++ b/tests/baselines/reference/bundlerNodeModules1(module=esnext).types @@ -20,6 +20,6 @@ import { esm, cjs } from "dual"; === /main.cts === import { esm, cjs } from "dual"; ->esm : number ->cjs : any +>esm : any +>cjs : number diff --git a/tests/baselines/reference/bundlerNodeModules1(module=preserve).errors.txt b/tests/baselines/reference/bundlerNodeModules1(module=preserve).errors.txt index 69921a8ce1425..b25d226dacf5f 100644 --- a/tests/baselines/reference/bundlerNodeModules1(module=preserve).errors.txt +++ b/tests/baselines/reference/bundlerNodeModules1(module=preserve).errors.txt @@ -4,7 +4,7 @@ error TS6504: File '/node_modules/dual/index.cjs' is a JavaScript file. Did you error TS6504: File '/node_modules/dual/index.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because: Root file specified for compilation -/main.cts(1,15): error TS2305: Module '"dual"' has no exported member 'cjs'. +/main.cts(1,10): error TS2305: Module '"dual"' has no exported member 'esm'. /main.mts(1,15): error TS2305: Module '"dual"' has no exported member 'cjs'. /main.ts(1,15): error TS2305: Module '"dual"' has no exported member 'cjs'. @@ -54,6 +54,6 @@ error TS6504: File '/node_modules/dual/index.js' is a JavaScript file. Did you m ==== /main.cts (1 errors) ==== import { esm, cjs } from "dual"; - ~~~ -!!! error TS2305: Module '"dual"' has no exported member 'cjs'. + ~~~ +!!! error TS2305: Module '"dual"' has no exported member 'esm'. \ No newline at end of file diff --git a/tests/baselines/reference/bundlerNodeModules1(module=preserve).types b/tests/baselines/reference/bundlerNodeModules1(module=preserve).types index 4fd828baaa40b..2154e18069292 100644 --- a/tests/baselines/reference/bundlerNodeModules1(module=preserve).types +++ b/tests/baselines/reference/bundlerNodeModules1(module=preserve).types @@ -20,6 +20,6 @@ import { esm, cjs } from "dual"; === /main.cts === import { esm, cjs } from "dual"; ->esm : number ->cjs : any +>esm : any +>cjs : number diff --git a/tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).errors.txt b/tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).errors.txt deleted file mode 100644 index e66a5c3ddddfc..0000000000000 --- a/tests/baselines/reference/conditionalExportsResolutionFallback(moduleresolution=bundler).errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. - - -!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. -==== /node_modules/dep/package.json (0 errors) ==== - { - "name": "dep", - "version": "1.0.0", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts", - } - } - } - -==== /node_modules/dep/dist/index.d.ts (0 errors) ==== - export {}; - -==== /node_modules/dep/dist/index.mjs (0 errors) ==== - export {}; - -==== /index.mts (0 errors) ==== - import {} from "dep"; - // Should be an untyped resolution to dep/dist/index.mjs, - // but the first search is only for TS files, and when - // there's no dist/index.d.mts, it continues looking for - // matching conditions and resolves via `types`. \ No newline at end of file diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).errors.txt b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).errors.txt deleted file mode 100644 index 9e462a35eaf70..0000000000000 --- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. - - -!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. -==== /node_modules/lodash/package.json (0 errors) ==== - { - "name": "lodash", - "version": "1.0.0", - "main": "index.js", - "exports": { - "browser": "./browser.js", - "webpack": "./webpack.js", - "default": "./index.js" - } - } - -==== /node_modules/lodash/index.d.ts (0 errors) ==== - declare const _: "index"; - export = _; - -==== /node_modules/lodash/browser.d.ts (0 errors) ==== - declare const _: "browser"; - export default _; - -==== /node_modules/lodash/webpack.d.ts (0 errors) ==== - declare const _: "webpack"; - export = _; - -==== /index.ts (0 errors) ==== - import _ from "lodash"; - \ No newline at end of file diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).js b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).js index 1ac29a4a032d3..2d484ff74b5d3 100644 --- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).js +++ b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).js @@ -29,5 +29,3 @@ import _ from "lodash"; //// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).errors.txt b/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).errors.txt deleted file mode 100644 index 9e462a35eaf70..0000000000000 --- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. - - -!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. -==== /node_modules/lodash/package.json (0 errors) ==== - { - "name": "lodash", - "version": "1.0.0", - "main": "index.js", - "exports": { - "browser": "./browser.js", - "webpack": "./webpack.js", - "default": "./index.js" - } - } - -==== /node_modules/lodash/index.d.ts (0 errors) ==== - declare const _: "index"; - export = _; - -==== /node_modules/lodash/browser.d.ts (0 errors) ==== - declare const _: "browser"; - export default _; - -==== /node_modules/lodash/webpack.d.ts (0 errors) ==== - declare const _: "webpack"; - export = _; - -==== /index.ts (0 errors) ==== - import _ from "lodash"; - \ No newline at end of file diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).js b/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).js index 1ac29a4a032d3..2d484ff74b5d3 100644 --- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).js +++ b/tests/baselines/reference/customConditions(resolvepackagejsonexports=true).js @@ -29,5 +29,3 @@ import _ from "lodash"; //// [index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js b/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js index b78501533ba4c..287c6556e46f5 100644 --- a/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js +++ b/tests/baselines/reference/legacyNodeModulesExportsSpecifierGenerationConditions.js @@ -32,7 +32,6 @@ export interface Thing {} // not exported in export map, inaccessible under new } //// [index.js] -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -69,15 +68,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) { if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.a = void 0; -var a = function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) { +export var a = function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, Promise.resolve().then(function () { return require("inner"); })]; + case 0: return [4 /*yield*/, import("inner")]; case 1: return [2 /*return*/, (_a.sent()).x()]; } }); }); }; -exports.a = a; //// [index.d.ts] diff --git a/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.js b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.js index 5718d67611ead..8d948790c9e6e 100644 --- a/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.js +++ b/tests/baselines/reference/moduleDetectionIsolatedModulesCjsFileScope.js @@ -6,8 +6,9 @@ const a = 2; const a = 2; //// [filename.cjs] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const a = 2; -export {}; //// [filename.mjs] const a = 2; export {}; diff --git a/tests/baselines/reference/modulePreserve4.errors.txt b/tests/baselines/reference/modulePreserve4.errors.txt index fa8baeb0c390d..65e21aa749b3c 100644 --- a/tests/baselines/reference/modulePreserve4.errors.txt +++ b/tests/baselines/reference/modulePreserve4.errors.txt @@ -1,12 +1,22 @@ /a.js(2,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +/f.cts(1,1): error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled. /main1.ts(1,13): error TS2305: Module '"./a"' has no exported member 'y'. /main1.ts(3,12): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. /main1.ts(19,4): error TS2339: Property 'default' does not exist on type '() => void'. +/main1.ts(23,8): error TS1192: Module '"/e"' has no default export. /main2.mts(1,13): error TS2305: Module '"./a"' has no exported member 'y'. /main2.mts(4,4): error TS2339: Property 'default' does not exist on type 'typeof import("/a")'. /main2.mts(5,12): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +/main2.mts(14,8): error TS1192: Module '"/e"' has no default export. +/main3.cjs(1,10): error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. /main3.cjs(1,13): error TS2305: Module '"./a"' has no exported member 'y'. /main3.cjs(2,1): error TS8002: 'import ... =' can only be used in TypeScript files. +/main3.cjs(5,8): error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. +/main3.cjs(8,8): error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. +/main3.cjs(10,8): error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. +/main3.cjs(12,8): error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. +/main3.cjs(14,8): error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. +/main3.cjs(17,8): error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. ==== /a.js (1 errors) ==== @@ -29,13 +39,15 @@ ==== /e.mts (0 errors) ==== export = 0; -==== /f.cts (0 errors) ==== +==== /f.cts (1 errors) ==== export default 0; + ~~~~~~~~~~~~~~~~~ +!!! error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled. ==== /g.js (0 errors) ==== exports.default = 0; -==== /main1.ts (3 errors) ==== +==== /main1.ts (4 errors) ==== import { x, y } from "./a"; // No y ~ !!! error TS2305: Module '"./a"' has no exported member 'y'. @@ -65,6 +77,8 @@ d3.default(); import e1 from "./e.mjs"; // 0 + ~~ +!!! error TS1192: Module '"/e"' has no default export. import e2 = require("./e.mjs"); // 0 import f1 from "./f.cjs"; // 0 import f2 = require("./f.cjs"); // { default: 0 } @@ -75,7 +89,7 @@ import g2 = require("./g"); // { default: 0 } g2.default; -==== /main2.mts (3 errors) ==== +==== /main2.mts (4 errors) ==== import { x, y } from "./a"; // No y ~ !!! error TS2305: Module '"./a"' has no exported member 'y'. @@ -96,6 +110,8 @@ import d1 from "./d"; // [Function: default] import d2 = require("./d"); // [Function: default] import e1 from "./e.mjs"; // 0 + ~~ +!!! error TS1192: Module '"/e"' has no default export. import e2 = require("./e.mjs"); // 0 import f1 from "./f.cjs"; // 0 import f2 = require("./f.cjs"); // { default: 0 } @@ -103,8 +119,10 @@ import g1 from "./g"; // { default: 0 } import g2 = require("./g"); // { default: 0 } -==== /main3.cjs (2 errors) ==== +==== /main3.cjs (9 errors) ==== import { x, y } from "./a"; // No y + ~ +!!! error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. ~ !!! error TS2305: Module '"./a"' has no exported member 'y'. import a1 = require("./a"); // Error in JS @@ -113,20 +131,35 @@ const a2 = require("./a"); // { x: 0 } import b1 from "./b"; // 0 + ~~ +!!! error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. const b2 = require("./b"); // { default: 0 } import c1 from "./c"; // { default: [Function: default] } + ~~ +!!! error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. const c2 = require("./c"); // { default: [Function: default] } import d1 from "./d"; // [Function: default] + ~~ +!!! error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. const d2 = require("./d"); // [Function: default] import e1 from "./e.mjs"; // 0 + ~~ +!!! error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. const e2 = require("./e.mjs"); // 0 import f1 from "./f.cjs"; // 0 + ~~ +!!! error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. const f2 = require("./f.cjs"); // { default: 0 } import g1 from "./g"; // { default: 0 } + ~~ +!!! error TS1293: ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. const g2 = require("./g"); // { default: 0 } +==== /main4.cjs (0 errors) ==== + exports.x = require("./g"); + ==== /dummy.ts (0 errors) ==== export {}; // Silly test harness \ No newline at end of file diff --git a/tests/baselines/reference/modulePreserve4.js b/tests/baselines/reference/modulePreserve4.js index e5e009d628b0c..536f52f3a4897 100644 --- a/tests/baselines/reference/modulePreserve4.js +++ b/tests/baselines/reference/modulePreserve4.js @@ -100,6 +100,9 @@ const f2 = require("./f.cjs"); // { default: 0 } import g1 from "./g"; // { default: 0 } const g2 = require("./g"); // { default: 0 } +//// [main4.cjs] +exports.x = require("./g"); + //// [dummy.ts] export {}; // Silly test harness @@ -185,6 +188,8 @@ import f1 from "./f.cjs"; // 0 const f2 = require("./f.cjs"); // { default: 0 } import g1 from "./g"; // { default: 0 } const g2 = require("./g"); // { default: 0 } +//// [main4.cjs] +exports.x = require("./g"); //// [dummy.js] export {}; // Silly test harness @@ -217,5 +222,7 @@ export {}; export {}; //// [main3.d.cts] export {}; +//// [main4.d.cts] +export const x: typeof import("./g"); //// [dummy.d.ts] export {}; diff --git a/tests/baselines/reference/modulePreserve4.symbols b/tests/baselines/reference/modulePreserve4.symbols index 05a7671af0235..e9b29a585d546 100644 --- a/tests/baselines/reference/modulePreserve4.symbols +++ b/tests/baselines/reference/modulePreserve4.symbols @@ -256,6 +256,14 @@ const g2 = require("./g"); // { default: 0 } >require : Symbol(require) >"./g" : Symbol(g1, Decl(g.js, 0, 0)) +=== /main4.cjs === +exports.x = require("./g"); +>exports.x : Symbol(x, Decl(main4.cjs, 0, 0)) +>exports : Symbol(x, Decl(main4.cjs, 0, 0)) +>x : Symbol(x, Decl(main4.cjs, 0, 0)) +>require : Symbol(require) +>"./g" : Symbol("/g", Decl(g.js, 0, 0)) + === /dummy.ts === export {}; // Silly test harness diff --git a/tests/baselines/reference/modulePreserve4.types b/tests/baselines/reference/modulePreserve4.types index 04872a9dde255..b626c4ca79518 100644 --- a/tests/baselines/reference/modulePreserve4.types +++ b/tests/baselines/reference/modulePreserve4.types @@ -135,7 +135,7 @@ d3.default(); >default : () => void import e1 from "./e.mjs"; // 0 ->e1 : 0 +>e1 : any import e2 = require("./e.mjs"); // 0 >e2 : 0 @@ -212,7 +212,7 @@ import d2 = require("./d"); // [Function: default] >d2 : () => void import e1 from "./e.mjs"; // 0 ->e1 : 0 +>e1 : any import e2 = require("./e.mjs"); // 0 >e2 : 0 @@ -297,6 +297,16 @@ const g2 = require("./g"); // { default: 0 } >require : any >"./g" : "./g" +=== /main4.cjs === +exports.x = require("./g"); +>exports.x = require("./g") : typeof import("/g") +>exports.x : typeof import("/g") +>exports : typeof import("/main4") +>x : typeof import("/g") +>require("./g") : typeof import("/g") +>require : any +>"./g" : "./g" + === /dummy.ts === export {}; // Silly test harness diff --git a/tests/baselines/reference/nodeModulesDeclarationEmitDynamicImportWithPackageExports.js b/tests/baselines/reference/nodeModulesDeclarationEmitDynamicImportWithPackageExports.js index e790961aa706e..3afe5f2a3f639 100644 --- a/tests/baselines/reference/nodeModulesDeclarationEmitDynamicImportWithPackageExports.js +++ b/tests/baselines/reference/nodeModulesDeclarationEmitDynamicImportWithPackageExports.js @@ -157,8 +157,8 @@ export declare const e: typeof import("inner/mjs"); export declare const a: Promise<{ default: typeof import("./index.cjs"); }>; -export declare const b: Promise; -export declare const c: Promise; +export declare const b: Promise; +export declare const c: Promise; export declare const f: Promise<{ default: typeof import("inner"); cjsMain: true; diff --git a/tests/baselines/reference/nodeNextModuleResolution1.js b/tests/baselines/reference/nodeNextModuleResolution1.js index d76bd3acd7fb6..a006d7840c307 100644 --- a/tests/baselines/reference/nodeNextModuleResolution1.js +++ b/tests/baselines/reference/nodeNextModuleResolution1.js @@ -15,5 +15,4 @@ import {x} from "foo"; //// [app.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/nodeNextModuleResolution2.js b/tests/baselines/reference/nodeNextModuleResolution2.js index 19475675a566b..e57c0f2575603 100644 --- a/tests/baselines/reference/nodeNextModuleResolution2.js +++ b/tests/baselines/reference/nodeNextModuleResolution2.js @@ -16,5 +16,4 @@ import {x} from "foo"; //// [app.mjs] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +export {}; diff --git a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).errors.txt b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).errors.txt index befdfb5cd9df7..fe904ca69530b 100644 --- a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).errors.txt +++ b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).errors.txt @@ -1,4 +1,3 @@ -error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. error TS6504: File '/node_modules/bar/index.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because: Root file specified for compilation @@ -17,7 +16,6 @@ error TS6504: File '/node_modules/foo/index.mjs' is a JavaScript file. Did you m There are types at '/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar' library may need to update its package.json or typings. -!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later. !!! error TS6504: File '/node_modules/bar/index.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? !!! error TS6504: The file is in the program because: !!! error TS6504: Root file specified for compilation diff --git a/tests/cases/compiler/modulePreserve4.ts b/tests/cases/compiler/modulePreserve4.ts index 9eabe664bb88c..9a7014852eefa 100644 --- a/tests/cases/compiler/modulePreserve4.ts +++ b/tests/cases/compiler/modulePreserve4.ts @@ -106,5 +106,8 @@ const f2 = require("./f.cjs"); // { default: 0 } import g1 from "./g"; // { default: 0 } const g2 = require("./g"); // { default: 0 } +// @Filename: /main4.cjs +exports.x = require("./g"); + // @Filename: /dummy.ts export {}; // Silly test harness diff --git a/tests/cases/conformance/moduleResolution/conditionalExportsResolutionFallback.ts b/tests/cases/conformance/moduleResolution/conditionalExportsResolutionFallback.ts index d9a1d480b8ef3..26fe08e88fb11 100644 --- a/tests/cases/conformance/moduleResolution/conditionalExportsResolutionFallback.ts +++ b/tests/cases/conformance/moduleResolution/conditionalExportsResolutionFallback.ts @@ -1,3 +1,4 @@ +// @module: esnext // @moduleResolution: node16,nodenext,bundler // @traceResolution: true // @allowJs: true diff --git a/tests/cases/conformance/moduleResolution/customConditions.ts b/tests/cases/conformance/moduleResolution/customConditions.ts index 47fb048ac28bf..0533574c6c230 100644 --- a/tests/cases/conformance/moduleResolution/customConditions.ts +++ b/tests/cases/conformance/moduleResolution/customConditions.ts @@ -1,3 +1,4 @@ +// @module: preserve // @moduleResolution: bundler // @customConditions: webpack, browser // @resolvePackageJsonExports: true, false diff --git a/tests/cases/conformance/moduleResolution/resolvesWithoutExportsDiagnostic1.ts b/tests/cases/conformance/moduleResolution/resolvesWithoutExportsDiagnostic1.ts index d01bb47a75ca8..57430c902655d 100644 --- a/tests/cases/conformance/moduleResolution/resolvesWithoutExportsDiagnostic1.ts +++ b/tests/cases/conformance/moduleResolution/resolvesWithoutExportsDiagnostic1.ts @@ -1,3 +1,4 @@ +// @module: preserve // @moduleResolution: bundler,node16 // @strict: true // @noTypesAndSymbols: true From c8d8a5fc1ba74556f55fe0c218ef1701f084cb78 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Wed, 27 Mar 2024 16:39:01 -0700 Subject: [PATCH 06/12] Rename function --- src/compiler/checker.ts | 10 +++++----- src/compiler/factory/utilities.ts | 4 ++-- src/compiler/utilities.ts | 8 ++++---- src/compiler/watch.ts | 4 ++-- src/services/codefixes/importFixes.ts | 8 ++++---- src/services/suggestionDiagnostics.ts | 4 ++-- src/services/utilities.ts | 4 ++-- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 61bdaf694fc0b..5b426983e3502 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -301,6 +301,7 @@ import { getIdentifierGeneratedImportReference, getIdentifierTypeArguments, getImmediatelyInvokedFunctionExpression, + getImpliedNodeFormatForEmit, getInitializerOfBinaryExpression, getInterfaceBaseTypeNodes, getInvokedExpression, @@ -411,7 +412,6 @@ import { IdentifierTypePredicate, idText, IfStatement, - impliedNodeFormatForEmit, ImportAttribute, ImportAttributes, ImportCall, @@ -4100,7 +4100,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function canHaveSyntheticDefault(file: SourceFile | undefined, moduleSymbol: Symbol, dontResolveAlias: boolean, usage: Expression) { const usageMode = file && getEmitSyntaxForModuleSpecifierExpression(usage); if (file && usageMode !== undefined) { - const targetMode = impliedNodeFormatForEmit(file, compilerOptions); + const targetMode = getImpliedNodeFormatForEmit(file, compilerOptions); if (usageMode === ModuleKind.ESNext && targetMode === ModuleKind.CommonJS && ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { // In Node.js, CommonJS modules always have a synthetic default when imported into ESM return true; @@ -5333,7 +5333,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } const targetFile = moduleSymbol?.declarations?.find(isSourceFile); - const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getEmitSyntaxForModuleSpecifierExpression(reference), impliedNodeFormatForEmit(targetFile, compilerOptions)); + const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getEmitSyntaxForModuleSpecifierExpression(reference), getImpliedNodeFormatForEmit(targetFile, compilerOptions)); if (getESModuleInterop(compilerOptions) || isEsmCjsRef) { let sigs = getSignaturesOfStructuredType(type, SignatureKind.Call); if (!sigs || !sigs.length) { @@ -46772,8 +46772,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if ( moduleKind >= ModuleKind.ES2015 && moduleKind !== ModuleKind.Preserve && - ((node.flags & NodeFlags.Ambient && impliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) === ModuleKind.ESNext) || - (!(node.flags & NodeFlags.Ambient) && impliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) !== ModuleKind.CommonJS)) + ((node.flags & NodeFlags.Ambient && getImpliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) === ModuleKind.ESNext) || + (!(node.flags & NodeFlags.Ambient) && getImpliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) !== ModuleKind.CommonJS)) ) { // export assignment is not supported in es6 modules grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); diff --git a/src/compiler/factory/utilities.ts b/src/compiler/factory/utilities.ts index 7252ca7e3b9dd..27aa00588ede7 100644 --- a/src/compiler/factory/utilities.ts +++ b/src/compiler/factory/utilities.ts @@ -58,6 +58,7 @@ import { getESModuleInterop, getExternalModuleName, getExternalModuleNameFromPath, + getImpliedNodeFormatForEmit, getJSDocType, getJSDocTypeTag, getModifiers, @@ -72,7 +73,6 @@ import { HasIllegalTypeParameters, Identifier, idText, - impliedNodeFormatForEmit, ImportCall, ImportDeclaration, ImportEqualsDeclaration, @@ -714,7 +714,7 @@ export function createExternalHelpersImportDeclarationIfNeeded(nodeFactory: Node if (compilerOptions.importHelpers && isEffectiveExternalModule(sourceFile, compilerOptions)) { let namedBindings: NamedImportBindings | undefined; const moduleKind = getEmitModuleKind(compilerOptions); - if ((moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || impliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) { + if ((moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || getImpliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) { // use named imports const helpers = getEmitHelpers(sourceFile); if (helpers) { diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 66886f9e2a8ac..da076ab572f59 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -8574,7 +8574,7 @@ function isFileForcedToBeModuleByFormat(file: SourceFile, options: CompilerOptio // that aren't esm-mode (meaning not in a `type: module` scope). // // TODO: extension check never considered compilerOptions; should impliedNodeFormat? - return (impliedNodeFormatForEmit(file, options) === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts, Extension.Mjs, Extension.Mts]))) && !file.isDeclarationFile ? true : undefined; + return (getImpliedNodeFormatForEmit(file, options) === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts, Extension.Mjs, Extension.Mts]))) && !file.isDeclarationFile ? true : undefined; } /** @internal */ @@ -8625,11 +8625,11 @@ export function importSyntaxAffectsModuleResolution(options: CompilerOptions) { * `program.getModeForUsageLocation` should be used instead. */ export function getDefaultResolutionModeForFile(sourceFile: Pick, options: CompilerOptions): ResolutionMode { - return importSyntaxAffectsModuleResolution(options) ? impliedNodeFormatForEmit(sourceFile, options) : undefined; + return importSyntaxAffectsModuleResolution(options) ? getImpliedNodeFormatForEmit(sourceFile, options) : undefined; } /** @internal */ -export function impliedNodeFormatForEmit(sourceFile: Pick, options: CompilerOptions): ResolutionMode { +export function getImpliedNodeFormatForEmit(sourceFile: Pick, options: CompilerOptions): ResolutionMode { const moduleKind = getEmitModuleKind(options); if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { return sourceFile.impliedNodeFormat; @@ -8662,7 +8662,7 @@ export function shouldTransformImportCall(sourceFile: Pick, options: CompilerOptions): ModuleKind { - return impliedNodeFormatForEmit(sourceFile, options) ?? getEmitModuleKind(options); + return getImpliedNodeFormatForEmit(sourceFile, options) ?? getEmitModuleKind(options); } type CompilerOptionKeys = keyof { [K in keyof CompilerOptions as string extends K ? never : K]: any; }; diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 0eda1de311ac8..290ffa9cbfcdc 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -56,6 +56,7 @@ import { getDefaultLibFileName, getDirectoryPath, getEmitScriptTarget, + getImpliedNodeFormatForEmit, getLineAndCharacterOfPosition, getNewLineCharacter, getNormalizedAbsolutePath, @@ -66,7 +67,6 @@ import { getRelativePathFromDirectory, getWatchFactory, HasCurrentDirectory, - impliedNodeFormatForEmit, isExternalOrCommonJsModule, isLineBreak, isReferencedFile, @@ -379,7 +379,7 @@ export function explainIfFileIsRedirectAndImpliedFormat( )); } if (isExternalOrCommonJsModule(file)) { - switch (impliedNodeFormatForEmit(file, options)) { + switch (getImpliedNodeFormatForEmit(file, options)) { case ModuleKind.ESNext: if (file.packageJsonScope) { (result ??= []).push(chainDiagnosticMessages( diff --git a/src/services/codefixes/importFixes.ts b/src/services/codefixes/importFixes.ts index 3151100a3dc64..cc0e5c6afb108 100644 --- a/src/services/codefixes/importFixes.ts +++ b/src/services/codefixes/importFixes.ts @@ -43,6 +43,7 @@ import { getEmitModuleResolutionKind, getEmitScriptTarget, getExportInfoMap, + getImpliedNodeFormatForEmit, getMeaningFromDeclaration, getMeaningFromLocation, getNameForExportedSymbol, @@ -58,7 +59,6 @@ import { getUniqueSymbolId, hostGetCanonicalFileName, Identifier, - impliedNodeFormatForEmit, ImportClause, ImportEqualsDeclaration, importFromModuleSpecifier, @@ -855,8 +855,8 @@ function shouldUseRequire(sourceFile: SourceFile, program: Program): boolean { // 4. In --module nodenext, assume we're not emitting JS -> JS, so use // whatever syntax Node expects based on the detected module kind // TODO: consider removing `impliedNodeFormatForEmit` - if (impliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.CommonJS) return true; - if (impliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) return false; + if (getImpliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.CommonJS) return true; + if (getImpliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) return false; // 5. Match the first other JS file in the program that's unambiguously CJS or ESM for (const otherFile of program.getSourceFiles()) { @@ -1166,7 +1166,7 @@ function getUmdImportKind(importingFile: SourceFile, compilerOptions: CompilerOp return ImportKind.Namespace; case ModuleKind.Node16: case ModuleKind.NodeNext: - return impliedNodeFormatForEmit(importingFile, compilerOptions) === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.CommonJS; + return getImpliedNodeFormatForEmit(importingFile, compilerOptions) === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.CommonJS; default: return Debug.assertNever(moduleKind, `Unexpected moduleKind ${moduleKind}`); } diff --git a/src/services/suggestionDiagnostics.ts b/src/services/suggestionDiagnostics.ts index ed60f9cd2115b..c7147b1ab9bf7 100644 --- a/src/services/suggestionDiagnostics.ts +++ b/src/services/suggestionDiagnostics.ts @@ -23,10 +23,10 @@ import { getAllowSyntheticDefaultImports, getAssignmentDeclarationKind, getFunctionFlags, + getImpliedNodeFormatForEmit, hasInitializer, hasPropertyAccessExpressionWithName, Identifier, - impliedNodeFormatForEmit, importFromModuleSpecifier, isAsyncFunction, isBinaryExpression, @@ -67,7 +67,7 @@ export function computeSuggestionDiagnostics(sourceFile: SourceFile, program: Pr program.getSemanticDiagnostics(sourceFile, cancellationToken); const diags: DiagnosticWithLocation[] = []; const checker = program.getTypeChecker(); - const isCommonJSFile = impliedNodeFormatForEmit(sourceFile, program.getCompilerOptions()) === ModuleKind.CommonJS || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cts, Extension.Cjs]); + const isCommonJSFile = getImpliedNodeFormatForEmit(sourceFile, program.getCompilerOptions()) === ModuleKind.CommonJS || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cts, Extension.Cjs]); if ( !isCommonJSFile && diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 880b6780c2cf8..84ba9e26455ed 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -96,6 +96,7 @@ import { getEmitModuleKind, getEmitScriptTarget, getExternalModuleImportEqualsDeclarationExpression, + getImpliedNodeFormatForEmit, getImpliedNodeFormatForFile, getIndentString, getJSDocEnumTag, @@ -124,7 +125,6 @@ import { identity, idText, IfStatement, - impliedNodeFormatForEmit, ImportClause, ImportDeclaration, ImportSpecifier, @@ -4252,7 +4252,7 @@ export function fileShouldUseJavaScriptRequire(file: SourceFile | string, progra fileName: file, impliedNodeFormat: getImpliedNodeFormatForFile(toPath(file, host.getCurrentDirectory(), hostGetCanonicalFileName(host)), program.getPackageJsonInfoCache?.(), host, compilerOptions), } : file; - const impliedNodeFormat = impliedNodeFormatForEmit(sourceFileLike, compilerOptions); + const impliedNodeFormat = getImpliedNodeFormatForEmit(sourceFileLike, compilerOptions); if (impliedNodeFormat === ModuleKind.ESNext) { return false; From 8646d1bed2b34f5cc257d8785204b54d50f0c3ef Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Tue, 2 Apr 2024 09:39:25 -0700 Subject: [PATCH 07/12] Add program.getCompilerOptionsForFile --- src/compiler/program.ts | 17 ++++++++++------- src/compiler/types.ts | 1 + src/compiler/watch.ts | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 0e281a05466de..5e54ef2b0c665 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1969,6 +1969,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg forEachResolvedProjectReference, isSourceOfProjectReferenceRedirect, getRedirectReferenceForResolutionFromSourceOfProject, + getCompilerOptionsForFile, emitBuildInfo, fileExists, readFile, @@ -3907,7 +3908,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg const resolutions = resolvedTypeReferenceDirectiveNamesProcessing?.get(file.path) || resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectives, file); const resolutionsInFile = createModeAwareCache(); - const optionsForFile = getRedirectReferenceForResolution(file)?.commandLine.options || options; + const optionsForFile = getCompilerOptionsForFile(file); (resolvedTypeReferenceDirectiveNames ??= new Map()).set(file.path, resolutionsInFile); for (let index = 0; index < typeDirectives.length; index++) { const ref = file.typeReferenceDirectives[index]; @@ -3920,6 +3921,10 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg } } + function getCompilerOptionsForFile(file: SourceFile): CompilerOptions { + return getRedirectReferenceForResolution(file)?.commandLine.options || options; + } + function processTypeReferenceDirective( typeReferenceDirective: string, mode: ResolutionMode, @@ -4077,7 +4082,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg const resolutions = resolvedModulesProcessing?.get(file.path) || resolveModuleNamesReusingOldState(moduleNames, file); Debug.assert(resolutions.length === moduleNames.length); - const optionsForFile = getRedirectReferenceForResolution(file)?.commandLine.options || options; + const optionsForFile = getCompilerOptionsForFile(file); const resolutionsInFile = createModeAwareCache(); (resolvedModules ??= new Map()).set(file.path, resolutionsInFile); for (let index = 0; index < moduleNames.length; index++) { @@ -4648,7 +4653,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg if (locationReason && fileIncludeReasons?.length === 1) fileIncludeReasons = undefined; const location = locationReason && getReferencedFileLocation(program, locationReason); const fileIncludeReasonDetails = fileIncludeReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon); - const optionsForFile = file && getRedirectReferenceForResolution(file)?.commandLine.options || options; + const optionsForFile = file && getCompilerOptionsForFile(file) || options; const redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, optionsForFile); const chain = chainDiagnosticMessages(redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, diagnostic, ...args || emptyArray); return location && isReferenceFileLocation(location) ? @@ -4979,13 +4984,11 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg } function getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode { - const optionsForFile = getRedirectReferenceForResolution(file)?.commandLine.options || options; - return getModeForUsageLocationWorker(file, usage, optionsForFile); + return getModeForUsageLocationWorker(file, usage, getCompilerOptionsForFile(file)); } function getEmitSyntaxForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode { - const optionsForFile = getRedirectReferenceForResolution(file)?.commandLine.options || options; - return getEmitSyntaxForUsageLocationWorker(file, usage, optionsForFile); + return getEmitSyntaxForUsageLocationWorker(file, usage, getCompilerOptionsForFile(file)); } function getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7f90ab9bc4f46..262d1391f2752 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4791,6 +4791,7 @@ export interface Program extends ScriptReferenceHost { /** @internal */ getResolvedProjectReferenceByPath(projectReferencePath: Path): ResolvedProjectReference | undefined; /** @internal */ getRedirectReferenceForResolutionFromSourceOfProject(filePath: Path): ResolvedProjectReference | undefined; /** @internal */ isSourceOfProjectReferenceRedirect(fileName: string): boolean; + /** @internal */ getCompilerOptionsForFile(file: SourceFile): CompilerOptions; /** @internal */ getBuildInfo?(): BuildInfo; /** @internal */ emitBuildInfo(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken): EmitResult; /** diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 290ffa9cbfcdc..f3066a137bbee 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -353,7 +353,7 @@ export function explainFiles(program: Program, write: (s: string) => void) { for (const file of program.getSourceFiles()) { write(`${toFileName(file, relativeFileName)}`); reasons.get(file.path)?.forEach(reason => write(` ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`)); - explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptions(), relativeFileName)?.forEach(d => write(` ${d.messageText}`)); + explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file), relativeFileName)?.forEach(d => write(` ${d.messageText}`)); } } From 6233b2887861583ee23a622df74fb91306624ac2 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Tue, 2 Apr 2024 09:53:20 -0700 Subject: [PATCH 08/12] Add missed baseline --- .../fourslashServer/autoImportNodeModuleSymlinkRenamed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js index 412d99ca995e3..82c73638e1ada 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js @@ -237,6 +237,7 @@ Info seq [hh:mm:ss:mss] Files (1) ../utils/src/index.ts Root file specified for compilation + File is CommonJS module because '../utils/package.json' does not have field "type" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: From 929670e7fc4b87a4b31fd284ce20dc682757ee50 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Tue, 2 Apr 2024 13:22:09 -0700 Subject: [PATCH 09/12] Delete unused baselines --- .../multiple-emitHelpers-in-all-projects.js | 2330 ----- .../multiple-prologues-in-all-projects.js | 1762 ---- .../shebang-in-all-projects.js | 904 -- .../amdModulesWithOut/stripInternal.js | 7559 ----------------- .../triple-slash-refs-in-all-projects.js | 1043 --- ...rojects-and-concatenates-them-correctly.js | 270 - .../baseline-sectioned-sourcemaps.js | 2053 ----- .../declarationMap-and-sourceMap-disabled.js | 1130 --- .../emitHelpers-in-all-projects.js | 3304 ------- ...tHelpers-in-only-one-dependency-project.js | 2444 ------ .../multiple-emitHelpers-in-all-projects.js | 3677 -------- ...tiple-emitHelpers-in-different-projects.js | 2699 ------ .../multiple-prologues-in-all-projects.js | 2983 ------- ...ultiple-prologues-in-different-projects.js | 2250 ----- .../outfile-concat/shebang-in-all-projects.js | 2083 ----- .../shebang-in-only-one-dependency-project.js | 1525 ---- .../outfile-concat/strict-in-all-projects.js | 2766 ------ .../strict-in-one-dependency.js | 2109 ----- ...hen-internal-is-inside-another-internal.js | 1507 ---- ...en-one-two-three-are-prepended-in-order.js | 1500 ---- .../stripInternal-jsdoc-style-comment.js | 4151 --------- ...en-one-two-three-are-prepended-in-order.js | 1015 --- ...-jsdoc-style-with-comments-emit-enabled.js | 3884 --------- ...l-when-few-members-of-enum-are-internal.js | 1697 ---- ...en-one-two-three-are-prepended-in-order.js | 2034 ----- ...nal-when-prepend-is-completely-internal.js | 322 - ...en-one-two-three-are-prepended-in-order.js | 1500 ---- ...tripInternal-with-comments-emit-enabled.js | 4254 ---------- .../tsbuild/outfile-concat/stripInternal.js | 4705 ---------- .../triple-slash-refs-in-all-projects.js | 2360 ----- .../triple-slash-refs-in-one-project.js | 1600 ---- ...-source-files-are-empty-in-the-own-file.js | 1516 ---- ...ncing-project-even-for-non-local-change.js | 628 -- ...ed-project-reference-doesnt-set-outFile.js | 138 - ...d-project-reference-output-doesnt-exist.js | 155 - ...et-in-the-session-and-when---out-is-set.js | 413 - ...nBackgroundUpdate-and-when---out-is-set.js | 418 - 37 files changed, 76688 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/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js 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 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 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 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 d2c8692bbeffe..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,2330 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","impliedFormat":1},{"version":"186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "impliedFormat": 1 - }, - "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "impliedFormat": 1 - }, - "version": "186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 5795 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","impliedFormat":1},{"version":"12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "impliedFormat": 1 - }, - "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);", - "impliedFormat": 1 - }, - "version": "12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 5882 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","impliedFormat":1},{"version":"-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "impliedFormat": 1 - }, - "version": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);", - "impliedFormat": 1 - }, - "version": "-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 5013 -} - 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 adaa0d537a2f7..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1762 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"9536729713-\"myPrologue\"\nconst myGlob = 20;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"16047001250-\"myPrologueFile\"\nexport const y = 20;","impliedFormat":1},{"version":"7757520337-\"myPrologue3\"\nconst globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "impliedFormat": 1 - }, - "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "-10726455937-export const x = 10;", - "impliedFormat": 1 - }, - "version": "-10726455937-export const x = 10;", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "impliedFormat": 1 - }, - "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", - "impliedFormat": 1 - }, - "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 3573 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"9536729713-\"myPrologue\"\nconst myGlob = 20;","impliedFormat":1},{"version":"-4405159098-export const x = 10;console.log(x);","impliedFormat":1},{"version":"16047001250-\"myPrologueFile\"\nexport const y = 20;","impliedFormat":1},{"version":"7757520337-\"myPrologue3\"\nconst globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "impliedFormat": 1 - }, - "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "-4405159098-export const x = 10;console.log(x);", - "impliedFormat": 1 - }, - "version": "-4405159098-export const x = 10;console.log(x);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "impliedFormat": 1 - }, - "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", - "impliedFormat": 1 - }, - "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 3656 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"9536729713-\"myPrologue\"\nconst myGlob = 20;","impliedFormat":1},{"version":"-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);","impliedFormat":1},{"version":"16047001250-\"myPrologueFile\"\nexport const y = 20;","impliedFormat":1},{"version":"7757520337-\"myPrologue3\"\nconst globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "impliedFormat": 1 - }, - "version": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);", - "impliedFormat": 1 - }, - "version": "-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "impliedFormat": 1 - }, - "version": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", - "impliedFormat": 1 - }, - "version": "7757520337-\"myPrologue3\"\nconst globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 3713 -} - 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 ed40709db23b4..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js +++ /dev/null @@ -1,904 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"7942086417-#!someshebang lib file0\nconst myGlob = 20;","impliedFormat":1},{"version":"378638433-#!someshebang lib file1\nexport const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", - "impliedFormat": 1 - }, - "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "378638433-#!someshebang lib file1\nexport const x = 10;", - "impliedFormat": 1 - }, - "version": "378638433-#!someshebang lib file1\nexport const x = 10;", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 3001 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"7942086417-#!someshebang lib file0\nconst myGlob = 20;","impliedFormat":1},{"version":"7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", - "impliedFormat": 1 - }, - "version": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);", - "impliedFormat": 1 - }, - "version": "7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 3089 -} - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js deleted file mode 100644 index fdd1a131ed99b..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js +++ /dev/null @@ -1,7559 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4331635807-/*@internal*/ const myGlob = 20;","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "4331635807-/*@internal*/ const myGlob = 20;", - "impliedFormat": 1 - }, - "version": "4331635807-/*@internal*/ const myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "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 }", - "impliedFormat": 1 - }, - "version": "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 }", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 13316 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4331635807-/*@internal*/ const myGlob = 20;","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "4331635807-/*@internal*/ const myGlob = 20;", - "impliedFormat": 1 - }, - "version": "4331635807-/*@internal*/ const myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 13400 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4331635807-/*@internal*/ const myGlob = 20;","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "4331635807-/*@internal*/ const myGlob = 20;", - "impliedFormat": 1 - }, - "version": "4331635807-/*@internal*/ const myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 13511 -} - 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 6d7dba16716b5..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,1043 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-2339691926-declare class libfile0 { }","impliedFormat":1},{"version":"11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","impliedFormat":1},{"version":"-10726455937-export const x = 10;","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./tripleref.d.ts": { - "original": { - "version": "-2339691926-declare class libfile0 { }", - "impliedFormat": 1 - }, - "version": "-2339691926-declare class libfile0 { }", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", - "impliedFormat": 1 - }, - "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "-10726455937-export const x = 10;", - "impliedFormat": 1 - }, - "version": "-10726455937-export const x = 10;", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 3436 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-2339691926-declare class libfile0 { }","impliedFormat":1},{"version":"11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","impliedFormat":1},{"version":"-4405159098-export const x = 10;console.log(x);","impliedFormat":1},{"version":"-13729954175-export const y = 20;","impliedFormat":1},{"version":"1028229885-const globalConst = 10;","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "./tripleref.d.ts": { - "original": { - "version": "-2339691926-declare class libfile0 { }", - "impliedFormat": 1 - }, - "version": "-2339691926-declare class libfile0 { }", - "impliedFormat": "commonjs" - }, - "./file0.ts": { - "original": { - "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", - "impliedFormat": 1 - }, - "version": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", - "impliedFormat": "commonjs" - }, - "./file1.ts": { - "original": { - "version": "-4405159098-export const x = 10;console.log(x);", - "impliedFormat": 1 - }, - "version": "-4405159098-export const x = 10;console.log(x);", - "impliedFormat": "commonjs" - }, - "./file2.ts": { - "original": { - "version": "-13729954175-export const y = 20;", - "impliedFormat": 1 - }, - "version": "-13729954175-export const y = 20;", - "impliedFormat": "commonjs" - }, - "./global.ts": { - "original": { - "version": "1028229885-const globalConst = 10;", - "impliedFormat": 1 - }, - "version": "1028229885-const globalConst = 10;", - "impliedFormat": "commonjs" - } - }, - "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": 3520 -} - 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 350c589c78650..0000000000000 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js +++ /dev/null @@ -1,270 +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":[{"version":"-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","impliedFormat":1},{"version":"-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n","impliedFormat":1}],"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": { - "original": { - "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "impliedFormat": 1 - }, - "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "impliedFormat": "commonjs" - }, - "./nominal.js": { - "original": { - "version": "-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n", - "impliedFormat": 1 - }, - "version": "-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n", - "impliedFormat": "commonjs" - } - }, - "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": 1567 -} - - - -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/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js deleted file mode 100644 index d0ec3689bf2b3..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js +++ /dev/null @@ -1,2053 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2794 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2729 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2725 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2797 -} - 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 c4f34a5ff5d57..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js +++ /dev/null @@ -1,1130 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2794 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2729 -} - 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 d4d07f07d3280..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,3304 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-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}", - "impliedFormat": 1 - }, - "version": "-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}", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3920 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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}", - "impliedFormat": 1 - }, - "version": "-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}", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3846 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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}", - "impliedFormat": 1 - }, - "version": "-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}", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3843 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3915 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3030 -} - 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 59410163d99fa..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js +++ /dev/null @@ -1,2444 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-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}", - "impliedFormat": 1 - }, - "version": "-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}", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3920 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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() { }","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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() { }", - "impliedFormat": 1 - }, - "version": "-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() { }", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2961 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3033 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3919 -} - 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 7f53423ac10cc..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,3677 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-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}", - "impliedFormat": 1 - }, - "version": "-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}", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - } - }, - "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": 5991 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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}", - "impliedFormat": 1 - }, - "version": "-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}", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - } - }, - "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": 5888 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - } - }, - "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": 5962 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"-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);","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - } - }, - "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": 5097 -} - 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 10d98f2cbe060..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js +++ /dev/null @@ -1,2699 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 4889 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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}","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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}", - "impliedFormat": 1 - }, - "version": "-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}", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3846 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3919 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3033 -} - 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 d1737ed2eb2c5..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,2983 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3430 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3130 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3124 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3197 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3395 -} - 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 6995a042014eb..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js +++ /dev/null @@ -1,2250 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3281 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2939 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3012 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3206 -} - 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 6177ad50d457b..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js +++ /dev/null @@ -1,2083 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2937 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", - "impliedFormat": 1 - }, - "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2896 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", - "impliedFormat": 1 - }, - "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2891 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", - "impliedFormat": 1 - }, - "version": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2962 -} - 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 965500bd64fdc..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js +++ /dev/null @@ -1,1525 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2937 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2729 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2802 -} - 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 ff6793b7904ee..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js +++ /dev/null @@ -1,2766 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3006 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2939 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2935 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3007 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3197 -} - 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 2039826bcb4d4..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js +++ /dev/null @@ -1,2109 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3006 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2729 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2802 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3054 -} - 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 62141219cf0be..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ /dev/null @@ -1,1507 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2794 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 4974 -} - 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 716cb1bee77ee..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,1500 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2782 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2853 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2802 -} - 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 802690310fe23..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js +++ /dev/null @@ -1,4151 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "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 }", - "impliedFormat": 1 - }, - "version": "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 }", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 11322 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2782 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2853 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2802 -} - 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 68de4d5510ace..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,1015 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2821 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2892 -} - 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 c7fa38cef82f8..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ /dev/null @@ -1,3884 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "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 }", - "impliedFormat": 1 - }, - "version": "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 }", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 12729 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2821 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2892 -} - 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 204ad66df3609..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js +++ /dev/null @@ -1,1697 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2794 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 5903 -} - 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 1803eae6c4df1..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,2034 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2780 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2778 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2850 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2797 -} - 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 5eb3b8823f847..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js +++ /dev/null @@ -1,322 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"2890484261-/* @internal */ const A = 1;","impliedFormat":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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "2890484261-/* @internal */ const A = 1;", - "impliedFormat": 1 - }, - "version": "2890484261-/* @internal */ const A = 1;", - "impliedFormat": "commonjs" - } - }, - "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": 1650 -} - 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 fb568b266e840..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,1500 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2781 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2854 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2803 -} - 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 0a21c3507b1ab..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js +++ /dev/null @@ -1,4254 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "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 }", - "impliedFormat": 1 - }, - "version": "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 }", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 11847 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2781 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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);", - "impliedFormat": 1 - }, - "version": "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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2854 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2803 -} - 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 edfa36965c934..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js +++ /dev/null @@ -1,4705 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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 }","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "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 }", - "impliedFormat": 1 - }, - "version": "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 }", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 11302 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "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", - "impliedFormat": 1 - }, - "version": "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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2780 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2778 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2850 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2797 -} - 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 3d8c4ee58c5e8..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,2360 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-742713438-declare class secondsecond_part1 { }","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/tripleref.d.ts": { - "original": { - "version": "-742713438-declare class secondsecond_part1 { }", - "impliedFormat": 1 - }, - "version": "-742713438-declare class secondsecond_part1 { }", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3420 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"-2651673797-declare class firstfirst_part2 { }","impliedFormat":1},{"version":"2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../tripleref.d.ts": { - "original": { - "version": "-2651673797-declare class firstfirst_part2 { }", - "impliedFormat": 1 - }, - "version": "-2651673797-declare class firstfirst_part2 { }", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", - "impliedFormat": 1 - }, - "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3310 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"-2651673797-declare class firstfirst_part2 { }","impliedFormat":1},{"version":"2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../tripleref.d.ts": { - "original": { - "version": "-2651673797-declare class firstfirst_part2 { }", - "impliedFormat": 1 - }, - "version": "-2651673797-declare class firstfirst_part2 { }", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", - "impliedFormat": 1 - }, - "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3304 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"-2651673797-declare class firstfirst_part2 { }","impliedFormat":1},{"version":"2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../tripleref.d.ts": { - "original": { - "version": "-2651673797-declare class firstfirst_part2 { }", - "impliedFormat": 1 - }, - "version": "-2651673797-declare class firstfirst_part2 { }", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", - "impliedFormat": 1 - }, - "version": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3375 -} - 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 7aadaf4e009f1..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js +++ /dev/null @@ -1,1600 +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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-742713438-declare class secondsecond_part1 { }","impliedFormat":1},{"version":"-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","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/tripleref.d.ts": { - "original": { - "version": "-742713438-declare class secondsecond_part1 { }", - "impliedFormat": 1 - }, - "version": "-742713438-declare class secondsecond_part1 { }", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-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", - "impliedFormat": 1 - }, - "version": "-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", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 3420 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2729 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2802 -} - 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 93341e4b9c1e7..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.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] -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","impliedFormat":1},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../second/second_part1.ts": { - "original": { - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": 1 - }, - "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", - "impliedFormat": "commonjs" - }, - "../second/second_part2.ts": { - "original": { - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": 1 - }, - "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2794 -} - -//// [/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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": 1 - }, - "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2729 -} - - - -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":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","impliedFormat":1},{"version":"-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);","impliedFormat":1},{"version":"6007494133-console.log(f());\n","impliedFormat":1},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","impliedFormat":1}],"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": { - "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; };", - "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; };", - "impliedFormat": "commonjs" - }, - "../first_part1.ts": { - "original": { - "version": "-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);", - "impliedFormat": 1 - }, - "version": "-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);", - "impliedFormat": "commonjs" - }, - "../first_part2.ts": { - "original": { - "version": "6007494133-console.log(f());\n", - "impliedFormat": 1 - }, - "version": "6007494133-console.log(f());\n", - "impliedFormat": "commonjs" - }, - "../first_part3.ts": { - "original": { - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": 1 - }, - "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", - "impliedFormat": "commonjs" - } - }, - "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": 2802 -} - 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 6a63feb913302..0000000000000 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js +++ /dev/null @@ -1,628 +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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"5450201652-function foo() { return 10; }","impliedFormat":1}],"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": { - "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "impliedFormat": 1 - }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "impliedFormat": "commonjs" - }, - "./index.ts": { - "original": { - "version": "5450201652-function foo() { return 10; }", - "impliedFormat": 1 - }, - "version": "5450201652-function foo() { return 10; }", - "impliedFormat": "commonjs" - } - }, - "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": 1038 -} - -//// [/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; - -====================================================================== - - -PolledWatches:: -/a/lib/package.json: *new* - {"pollingInterval":2000} -/a/package.json: *new* - {"pollingInterval":2000} -/package.json: *new* - {"pollingInterval":2000} -/user/package.json: *new* - {"pollingInterval":2000} -/user/username/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/sample1/core/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/sample1/logic/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/sample1/package.json: *new* - {"pollingInterval":2000} - -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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }","impliedFormat":1}],"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": { - "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "impliedFormat": 1 - }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "impliedFormat": "commonjs" - }, - "./index.ts": { - "original": { - "version": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }", - "impliedFormat": 1 - }, - "version": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }", - "impliedFormat": "commonjs" - } - }, - "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": 1182 -} - -//// [/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":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","impliedFormat":1},{"version":"-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }","impliedFormat":1}],"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": { - "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "impliedFormat": 1 - }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "impliedFormat": "commonjs" - }, - "./index.ts": { - "original": { - "version": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }", - "impliedFormat": 1 - }, - "version": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }", - "impliedFormat": "commonjs" - } - }, - "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": 1184 -} - -//// [/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/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 4b1d7a0d5ba03..0000000000000 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js +++ /dev/null @@ -1,138 +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,"impliedFormat":1},{"version":"-3531955686-export { };","signature":"-3531856636-export {};\n","impliedFormat":1}],"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, - "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" - }, - "../a.ts": { - "original": { - "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n", - "impliedFormat": 1 - }, - "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n", - "impliedFormat": "commonjs" - } - }, - "root": [ - [ - 2, - "../a.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "latestChangedDtsFile": "./a.d.ts" - }, - "version": "FakeTSVersion", - "size": 821 -} - 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 22a637c797809..0000000000000 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js +++ /dev/null @@ -1,155 +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,"impliedFormat":1},{"version":"4096062741-const y = x;","signature":"-1874842468-declare const y: any;\n","affectsGlobalScope":true,"impliedFormat":1}],"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, - "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" - }, - "../a.ts": { - "original": { - "version": "4096062741-const y = x;", - "signature": "-1874842468-declare const y: any;\n", - "affectsGlobalScope": true, - "impliedFormat": 1 - }, - "version": "4096062741-const y = x;", - "signature": "-1874842468-declare const y: any;\n", - "affectsGlobalScope": true, - "impliedFormat": "commonjs" - } - }, - "root": [ - [ - 2, - "../a.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "latestChangedDtsFile": "./a.d.ts" - }, - "version": "FakeTSVersion", - "size": 858 -} - 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 cb81bc3fb4527..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,413 +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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -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/package.json: *new* - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types: *new* - {"pollingInterval":500} -/users/username/projects/project/package.json: *new* - {"pollingInterval":2000} - -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/package.json: - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types: - {"pollingInterval":500} -/users/username/projects/project/package.json: - {"pollingInterval":2000} - -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 b621af60327e7..0000000000000 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ /dev/null @@ -1,418 +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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -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/package.json: *new* - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types: *new* - {"pollingInterval":500} -/users/username/projects/project/package.json: *new* - {"pollingInterval":2000} - -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/package.json: - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types: - {"pollingInterval":500} -/users/username/projects/project/package.json: - {"pollingInterval":2000} - -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 From 3e5068f6d135c2756c7d0764bf67d2125bc31dc8 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Tue, 2 Apr 2024 13:35:45 -0700 Subject: [PATCH 10/12] Remove unused baseline --- ...nBackgroundUpdate-and-when---out-is-set.js | 440 ------------------ 1 file changed, 440 deletions(-) delete mode 100644 tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js 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 c96a22b6d8b85..0000000000000 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ /dev/null @@ -1,440 +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] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -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/package.json: *new* - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types: *new* - {"pollingInterval":500} -/users/username/projects/project/package.json: *new* - {"pollingInterval":2000} - -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/package.json: - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types: - {"pollingInterval":500} -/users/username/projects/project/package.json: - {"pollingInterval":2000} - -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 From 7791abcb03eb5f1c23d26a3f9a0b3cf9d4c4a37f Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Wed, 3 Apr 2024 17:01:43 -0700 Subject: [PATCH 11/12] Move utilities to Program so they use options for file --- src/compiler/checker.ts | 40 +++++------ src/compiler/factory/utilities.ts | 8 +-- src/compiler/moduleSpecifiers.ts | 20 +++--- src/compiler/program.ts | 72 ++++++++++++++++--- .../module/impliedNodeFormatDependent.ts | 9 ++- src/compiler/transformers/module/module.ts | 3 +- src/compiler/types.ts | 16 +++++ src/compiler/utilities.ts | 50 +------------ src/compiler/watch.ts | 4 +- src/services/codefixes/importFixes.ts | 33 +++++---- src/services/completions.ts | 6 +- src/services/goToDefinition.ts | 3 +- src/services/importTracker.ts | 4 +- src/services/stringCompletions.ts | 72 +++++++++++-------- src/services/suggestionDiagnostics.ts | 3 +- src/services/utilities.ts | 7 +- 16 files changed, 190 insertions(+), 160 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 5eb445ab83482..5676ea6466dab 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -259,7 +259,6 @@ import { getDeclarationsOfKind, getDeclaredExpandoInitializer, getDecorators, - getDefaultResolutionModeForFile, getDirectoryPath, getEffectiveBaseTypeNode, getEffectiveConstraintOfTypeParameter, @@ -275,7 +274,6 @@ import { getElementOrPropertyAccessName, getEmitDeclarations, getEmitFlags, - getEmitModuleFormatOfFile, getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, @@ -300,7 +298,6 @@ import { getIdentifierGeneratedImportReference, getIdentifierTypeArguments, getImmediatelyInvokedFunctionExpression, - getImpliedNodeFormatForEmit, getInitializerOfBinaryExpression, getInterfaceBaseTypeNodes, getInvokedExpression, @@ -4100,7 +4097,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function canHaveSyntheticDefault(file: SourceFile | undefined, moduleSymbol: Symbol, dontResolveAlias: boolean, usage: Expression) { const usageMode = file && getEmitSyntaxForModuleSpecifierExpression(usage); if (file && usageMode !== undefined) { - const targetMode = getImpliedNodeFormatForEmit(file, compilerOptions); + const targetMode = host.getImpliedNodeFormatForEmit(file); if (usageMode === ModuleKind.ESNext && targetMode === ModuleKind.CommonJS && ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { // In Node.js, CommonJS modules always have a synthetic default when imported into ESM return true; @@ -5046,7 +5043,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { findAncestor(location, isExportDeclaration)?.moduleSpecifier; const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) - : getDefaultResolutionModeForFile(currentSourceFile, compilerOptions); + : host.getDefaultResolutionModeForFile(currentSourceFile); const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions); const resolvedModule = host.getResolvedModule(currentSourceFile, moduleReference, mode)?.resolvedModule; const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile); @@ -5333,7 +5330,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } const targetFile = moduleSymbol?.declarations?.find(isSourceFile); - const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getEmitSyntaxForModuleSpecifierExpression(reference), getImpliedNodeFormatForEmit(targetFile, compilerOptions)); + const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getEmitSyntaxForModuleSpecifierExpression(reference), host.getImpliedNodeFormatForEmit(targetFile)); if (getESModuleInterop(compilerOptions) || isEsmCjsRef) { let sigs = getSignaturesOfStructuredType(type, SignatureKind.Call); if (!sigs || !sigs.length) { @@ -8118,7 +8115,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const contextFile = getSourceFileOfNode(enclosingDeclaration); const resolutionMode = overrideImportMode || originalModuleSpecifier && host.getModeForUsageLocation(contextFile, originalModuleSpecifier) - || contextFile && getDefaultResolutionModeForFile(contextFile, compilerOptions); + || contextFile && host.getDefaultResolutionModeForFile(contextFile); const cacheKey = createModeAwareCacheKey(contextFile.path, resolutionMode); const links = getSymbolLinks(symbol); let specifier = links.specifierCache && links.specifierCache.get(cacheKey); @@ -42900,7 +42897,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function checkCollisionWithRequireExportsInGeneratedCode(node: Node, name: Identifier | undefined) { // No need to check for require or exports for ES6 modules and later - if (getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) >= ModuleKind.ES2015) { + if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) >= ModuleKind.ES2015) { return; } @@ -44784,7 +44781,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function checkClassNameCollisionWithObject(name: Identifier): void { if ( languageVersion >= ScriptTarget.ES5 && name.escapedText === "Object" - && getEmitModuleFormatOfFile(getSourceFileOfNode(name), compilerOptions) < ModuleKind.ES2015 + && host.getEmitModuleFormatOfFile(getSourceFileOfNode(name)) < ModuleKind.ES2015 ) { error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); // https://github.com/Microsoft/TypeScript/issues/17494 } @@ -46115,7 +46112,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if ( compilerOptions.verbatimModuleSyntax && node.parent.kind === SyntaxKind.SourceFile && - getEmitModuleFormatOfFile(node.parent, compilerOptions) === ModuleKind.CommonJS + host.getEmitModuleFormatOfFile(node.parent) === ModuleKind.CommonJS ) { const exportModifier = node.modifiers?.find(m => m.kind === SyntaxKind.ExportKeyword); if (exportModifier) { @@ -46395,7 +46392,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { compilerOptions.verbatimModuleSyntax && node.kind !== SyntaxKind.ImportEqualsDeclaration && !isInJSFile(node) && - getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS + host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === ModuleKind.CommonJS ) { error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } @@ -46403,7 +46400,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { moduleKind === ModuleKind.Preserve && node.kind !== SyntaxKind.ImportEqualsDeclaration && node.kind !== SyntaxKind.VariableDeclaration && - getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS + host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === ModuleKind.CommonJS ) { // In `--module preserve`, ESM input syntax emits ESM output syntax, but there will be times // when we look at the `impliedNodeFormat` of this file and decide it's CommonJS. To avoid @@ -46459,7 +46456,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { node.kind === SyntaxKind.ImportSpecifier && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && - getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System + host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < ModuleKind.System ) { checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportDefault); } @@ -46524,7 +46521,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if (importClause.namedBindings) { if (importClause.namedBindings.kind === SyntaxKind.NamespaceImport) { checkImportBinding(importClause.namedBindings); - if (getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System && getESModuleInterop(compilerOptions)) { + if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < ModuleKind.System && getESModuleInterop(compilerOptions)) { // import * as ns from "foo"; checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportStar); } @@ -46614,7 +46611,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { else if (node.exportClause) { checkAliasSymbol(node.exportClause); } - if (getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System) { + if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < ModuleKind.System) { if (node.exportClause) { // export * as ns from "foo"; // For ES2015 modules, we emit it as a pair of `import * as a_1 ...; export { a_1 as ns }` and don't need the helper. @@ -46673,7 +46670,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { else { if ( getESModuleInterop(compilerOptions) && - getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System && + host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < ModuleKind.System && idText(node.propertyName || node.name) === "default" ) { checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportDefault); @@ -46714,7 +46711,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & NodeFlags.Ambient) && compilerOptions.verbatimModuleSyntax && - getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS; + host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === ModuleKind.CommonJS; if (node.expression.kind === SyntaxKind.Identifier) { const id = node.expression as Identifier; @@ -46812,8 +46809,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if ( moduleKind >= ModuleKind.ES2015 && moduleKind !== ModuleKind.Preserve && - ((node.flags & NodeFlags.Ambient && getImpliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) === ModuleKind.ESNext) || - (!(node.flags & NodeFlags.Ambient) && getImpliedNodeFormatForEmit(getSourceFileOfNode(node), compilerOptions) !== ModuleKind.CommonJS)) + ((node.flags & NodeFlags.Ambient && host.getImpliedNodeFormatForEmit(getSourceFileOfNode(node)) === ModuleKind.ESNext) || + (!(node.flags & NodeFlags.Ambient) && host.getImpliedNodeFormatForEmit(getSourceFileOfNode(node)) !== ModuleKind.CommonJS)) ) { // export assignment is not supported in es6 modules grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); @@ -49537,7 +49534,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // ModuleDeclaration needs to be checked that it is uninstantiated later node.kind !== SyntaxKind.ModuleDeclaration && node.parent.kind === SyntaxKind.SourceFile && - getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) === ModuleKind.CommonJS + host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === ModuleKind.CommonJS ) { return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } @@ -50696,7 +50693,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } if ( - getEmitModuleFormatOfFile(getSourceFileOfNode(node), compilerOptions) < ModuleKind.System && + host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < ModuleKind.System && !(node.parent.parent.flags & NodeFlags.Ambient) && hasSyntacticModifier(node.parent.parent, ModifierFlags.Export) ) { checkESModuleMarker(node.name); @@ -51326,6 +51323,7 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host: TypeCheckerHo fileExists: fileName => host.fileExists(fileName), getFileIncludeReasons: () => host.getFileIncludeReasons(), readFile: host.readFile ? (fileName => host.readFile!(fileName)) : undefined, + getDefaultResolutionModeForFile: file => host.getDefaultResolutionModeForFile(file), }; } diff --git a/src/compiler/factory/utilities.ts b/src/compiler/factory/utilities.ts index 27aa00588ede7..731c13d78ec60 100644 --- a/src/compiler/factory/utilities.ts +++ b/src/compiler/factory/utilities.ts @@ -53,12 +53,12 @@ import { getAllAccessorDeclarations, getEmitFlags, getEmitHelpers, - getEmitModuleFormatOfFile, + getEmitModuleFormatOfFileWorker, getEmitModuleKind, getESModuleInterop, getExternalModuleName, getExternalModuleNameFromPath, - getImpliedNodeFormatForEmit, + getImpliedNodeFormatForEmitWorker, getJSDocType, getJSDocTypeTag, getModifiers, @@ -714,7 +714,7 @@ export function createExternalHelpersImportDeclarationIfNeeded(nodeFactory: Node if (compilerOptions.importHelpers && isEffectiveExternalModule(sourceFile, compilerOptions)) { let namedBindings: NamedImportBindings | undefined; const moduleKind = getEmitModuleKind(compilerOptions); - if ((moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || getImpliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) { + if ((moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || getImpliedNodeFormatForEmitWorker(sourceFile, compilerOptions) === ModuleKind.ESNext) { // use named imports const helpers = getEmitHelpers(sourceFile); if (helpers) { @@ -772,7 +772,7 @@ export function getOrCreateExternalHelpersModuleNameIfNeeded(factory: NodeFactor } let create = (hasExportStarsToExportValues || (getESModuleInterop(compilerOptions) && hasImportStarOrImportDefault)) - && getEmitModuleFormatOfFile(node, compilerOptions) < ModuleKind.System; + && getEmitModuleFormatOfFileWorker(node, compilerOptions) < ModuleKind.System; if (!create) { const helpers = getEmitHelpers(node); if (helpers) { diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index 57e95c8eead41..129a28db9d6ff 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -35,7 +35,6 @@ import { getBaseFileName, GetCanonicalFileName, getConditions, - getDefaultResolutionModeForFile, getDirectoryPath, getEmitModuleResolutionKind, getModeForResolutionAtIndex, @@ -141,6 +140,7 @@ export interface ModuleSpecifierPreferences { /** @internal */ export function getModuleSpecifierPreferences( { importModuleSpecifierPreference, importModuleSpecifierEnding }: UserPreferences, + host: Pick, compilerOptions: CompilerOptions, importingSourceFile: SourceFile, oldImportSpecifier?: string, @@ -155,7 +155,7 @@ export function getModuleSpecifierPreferences( importModuleSpecifierPreference === "project-relative" ? RelativePreference.ExternalNonRelative : RelativePreference.Shortest, getAllowedEndingsInPreferredOrder: syntaxImpliedNodeFormat => { - const impliedNodeFormat = getDefaultResolutionModeForFile(importingSourceFile, compilerOptions); + const impliedNodeFormat = host.getDefaultResolutionModeForFile(importingSourceFile); const preferredEnding = syntaxImpliedNodeFormat !== impliedNodeFormat ? getPreferredEnding(syntaxImpliedNodeFormat) : filePreferredEnding; const moduleResolution = getEmitModuleResolutionKind(compilerOptions); if ((syntaxImpliedNodeFormat ?? impliedNodeFormat) === ModuleKind.ESNext && ModuleResolutionKind.Node16 <= moduleResolution && moduleResolution <= ModuleResolutionKind.NodeNext) { @@ -198,7 +198,7 @@ export function getModuleSpecifierPreferences( } return getModuleSpecifierEndingPreference( importModuleSpecifierEnding, - resolutionMode ?? getDefaultResolutionModeForFile(importingSourceFile, compilerOptions), + resolutionMode ?? host.getDefaultResolutionModeForFile(importingSourceFile), compilerOptions, importingSourceFile, ); @@ -219,7 +219,7 @@ export function updateModuleSpecifier( oldImportSpecifier: string, options: ModuleSpecifierOptions = {}, ): string | undefined { - const res = getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, getModuleSpecifierPreferences({}, compilerOptions, importingSourceFile, oldImportSpecifier), {}, options); + const res = getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, getModuleSpecifierPreferences({}, host, compilerOptions, importingSourceFile, oldImportSpecifier), {}, options); if (res === oldImportSpecifier) return undefined; return res; } @@ -239,7 +239,7 @@ export function getModuleSpecifier( host: ModuleSpecifierResolutionHost, options: ModuleSpecifierOptions = {}, ): string { - return getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, getModuleSpecifierPreferences({}, compilerOptions, importingSourceFile), {}, options); + return getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, getModuleSpecifierPreferences({}, host, compilerOptions, importingSourceFile), {}, options); } /** @internal */ @@ -269,7 +269,7 @@ function getModuleSpecifierWorker( const info = getInfo(importingSourceFileName, host); const modulePaths = getAllModulePaths(info, toFileName, host, userPreferences, options); return firstDefined(modulePaths, modulePath => tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, /*packageNameOnly*/ undefined, options.overrideImportMode)) || - getLocalModuleSpecifier(toFileName, info, compilerOptions, host, options.overrideImportMode || getDefaultResolutionModeForFile(importingSourceFile, compilerOptions), preferences); + getLocalModuleSpecifier(toFileName, info, compilerOptions, host, options.overrideImportMode || host.getDefaultResolutionModeForFile(importingSourceFile), preferences); } /** @internal */ @@ -383,7 +383,7 @@ function computeModuleSpecifiers( forAutoImport: boolean, ): readonly string[] { const info = getInfo(importingSourceFile.fileName, host); - const preferences = getModuleSpecifierPreferences(userPreferences, compilerOptions, importingSourceFile); + const preferences = getModuleSpecifierPreferences(userPreferences, host, compilerOptions, importingSourceFile); const existingSpecifier = forEach(modulePaths, modulePath => forEach( host.getFileIncludeReasons().get(toPath(modulePath.path, host.getCurrentDirectory(), info.getCanonicalFileName)), @@ -392,7 +392,7 @@ function computeModuleSpecifiers( // If the candidate import mode doesn't match the mode we're generating for, don't consider it // TODO: maybe useful to keep around as an alternative option for certain contexts where the mode is overridable const existingMode = getModeForResolutionAtIndex(importingSourceFile, reason.index, compilerOptions); - const targetMode = options.overrideImportMode ?? getDefaultResolutionModeForFile(importingSourceFile, compilerOptions); + const targetMode = options.overrideImportMode ?? host.getDefaultResolutionModeForFile(importingSourceFile); if (existingMode !== targetMode && existingMode !== undefined && targetMode !== undefined) { return undefined; } @@ -1032,7 +1032,7 @@ function tryGetModuleNameAsNodeModule({ path, isRedirect }: ModulePath, { getCan // Simplify the full file path to something that can be resolved by Node. - const preferences = getModuleSpecifierPreferences(userPreferences, options, importingSourceFile); + const preferences = getModuleSpecifierPreferences(userPreferences, host, options, importingSourceFile); const allowedEndings = preferences.getAllowedEndingsInPreferredOrder(); let moduleSpecifier = path; let isPackageRootPath = false; @@ -1092,7 +1092,7 @@ function tryGetModuleNameAsNodeModule({ path, isRedirect }: ModulePath, { getCan const cachedPackageJson = host.getPackageJsonInfoCache?.()?.getPackageJsonInfo(packageJsonPath); if (isPackageJsonInfo(cachedPackageJson) || cachedPackageJson === undefined && host.fileExists(packageJsonPath)) { const packageJsonContent: Record | undefined = cachedPackageJson?.contents.packageJsonContent || tryParseJson(host.readFile!(packageJsonPath)!); - const importMode = overrideMode || getDefaultResolutionModeForFile(importingSourceFile, options); + const importMode = overrideMode || host.getDefaultResolutionModeForFile(importingSourceFile); if (getResolvePackageJsonExports(options)) { // The package name that we found in node_modules could be different from the package // name in the package.json content via url/filepath dependency specifiers. We need to diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 5e54ef2b0c665..08852c0eb4852 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -112,10 +112,8 @@ import { getCommonSourceDirectoryOfConfig, getDeclarationDiagnostics as ts_getDeclarationDiagnostics, getDefaultLibFileName, - getDefaultResolutionModeForFile, getDirectoryPath, getEmitDeclarations, - getEmitModuleFormatOfFile, getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, @@ -289,7 +287,6 @@ import { ScriptTarget, setParent, setParentRecursive, - shouldTransformImportCall, skipTrivia, skipTypeChecking, some, @@ -961,7 +958,7 @@ function getEmitSyntaxForUsageLocationWorker(file: Pick(entry: const typeReferenceResolutionNameAndModeGetter: ResolutionNameAndModeGetter = { getName: getTypeReferenceResolutionName, - getMode: (entry, file, compilerOptions) => getModeForFileReference(entry, file && getDefaultResolutionModeForFile(file, compilerOptions)), + getMode: (entry, file, compilerOptions) => getModeForFileReference(entry, file && getDefaultResolutionModeForFileWorker(file, compilerOptions)), }; /** @internal */ @@ -1970,6 +1967,10 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg isSourceOfProjectReferenceRedirect, getRedirectReferenceForResolutionFromSourceOfProject, getCompilerOptionsForFile, + getDefaultResolutionModeForFile, + getEmitModuleFormatOfFile, + getImpliedNodeFormatForEmit, + shouldTransformImportCall, emitBuildInfo, fileExists, readFile, @@ -2684,6 +2685,9 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg getSymlinkCache, writeFile: writeFileCallback || writeFile, isEmitBlocked, + shouldTransformImportCall, + getEmitModuleFormatOfFile, + getDefaultResolutionModeForFile, readFile: f => host.readFile(f), fileExists: f => { // Use local caches @@ -3908,7 +3912,6 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg const resolutions = resolvedTypeReferenceDirectiveNamesProcessing?.get(file.path) || resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectives, file); const resolutionsInFile = createModeAwareCache(); - const optionsForFile = getCompilerOptionsForFile(file); (resolvedTypeReferenceDirectiveNames ??= new Map()).set(file.path, resolutionsInFile); for (let index = 0; index < typeDirectives.length; index++) { const ref = file.typeReferenceDirectives[index]; @@ -3916,7 +3919,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg // store resolved type directive on the file const fileName = toFileNameLowerCase(ref.fileName); resolutionsInFile.set(fileName, getModeForFileReference(ref, file.impliedNodeFormat), resolvedTypeReferenceDirective); - const mode = ref.resolutionMode || getDefaultResolutionModeForFile(file, optionsForFile); + const mode = ref.resolutionMode || getDefaultResolutionModeForFile(file); processTypeReferenceDirective(fileName, mode, resolvedTypeReferenceDirective, { kind: FileIncludeKind.TypeReferenceDirective, file: file.path, index }); } } @@ -4994,6 +4997,59 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg function getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode { return getModeForUsageLocation(file, getModuleNameStringLiteralAt(file, index)); } + + function getDefaultResolutionModeForFile(sourceFile: SourceFile): ResolutionMode { + return getDefaultResolutionModeForFileWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); + } + + function getImpliedNodeFormatForEmit(sourceFile: SourceFile): ResolutionMode { + return getImpliedNodeFormatForEmitWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); + } + + function getEmitModuleFormatOfFile(sourceFile: SourceFile): ModuleKind { + return getEmitModuleFormatOfFileWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); + } + + function shouldTransformImportCall(sourceFile: SourceFile): boolean { + return shouldTransformImportCallWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); + } +} + +function shouldTransformImportCallWorker(sourceFile: Pick, options: CompilerOptions): boolean { + const moduleKind = getEmitModuleKind(options); + if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext || moduleKind === ModuleKind.Preserve) { + return false; + } + return getEmitModuleFormatOfFileWorker(sourceFile, options) < ModuleKind.ES2015; +} +/** @internal Prefer `program.getEmitModuleFormatOfFile` when possible. */ +export function getEmitModuleFormatOfFileWorker(sourceFile: Pick, options: CompilerOptions): ModuleKind { + return getImpliedNodeFormatForEmitWorker(sourceFile, options) ?? getEmitModuleKind(options); +} +/** @internal Prefer `program.getImpliedNodeFormatForEmit` when possible. */ +export function getImpliedNodeFormatForEmitWorker(sourceFile: Pick, options: CompilerOptions): ResolutionMode { + const moduleKind = getEmitModuleKind(options); + if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { + return sourceFile.impliedNodeFormat; + } + if ( + sourceFile.impliedNodeFormat === ModuleKind.CommonJS + && (sourceFile.packageJsonScope?.contents.packageJsonContent.type === "commonjs" + || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cjs, Extension.Cts])) + ) { + return ModuleKind.CommonJS; + } + if ( + sourceFile.impliedNodeFormat === ModuleKind.ESNext + && (sourceFile.packageJsonScope?.contents.packageJsonContent.type === "module" + || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Mjs, Extension.Mts])) + ) { + return ModuleKind.ESNext; + } + return undefined; +} +function getDefaultResolutionModeForFileWorker(sourceFile: Pick, options: CompilerOptions): ResolutionMode { + return importSyntaxAffectsModuleResolution(options) ? getImpliedNodeFormatForEmitWorker(sourceFile, options) : undefined; } interface HostForUseSourceOfProjectReferenceRedirect { diff --git a/src/compiler/transformers/module/impliedNodeFormatDependent.ts b/src/compiler/transformers/module/impliedNodeFormatDependent.ts index c9acfa2bb3a94..c96ead5ebf753 100644 --- a/src/compiler/transformers/module/impliedNodeFormatDependent.ts +++ b/src/compiler/transformers/module/impliedNodeFormatDependent.ts @@ -2,7 +2,6 @@ import { Bundle, Debug, EmitHint, - getEmitModuleFormatOfFile, isSourceFile, map, ModuleKind, @@ -31,7 +30,7 @@ export function transformImpliedNodeFormatDependentModule(context: Transformatio const cjsOnSubstituteNode = context.onSubstituteNode; const cjsOnEmitNode = context.onEmitNode; - const compilerOptions = context.getEmitHost().getCompilerOptions(); + const getEmitModuleFormatOfFile = (file: SourceFile) => context.getEmitHost().getEmitModuleFormatOfFile(file); context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; @@ -53,7 +52,7 @@ export function transformImpliedNodeFormatDependentModule(context: Transformatio if (!currentSourceFile) { return previousOnSubstituteNode(hint, node); } - if (getEmitModuleFormatOfFile(currentSourceFile, compilerOptions) >= ModuleKind.ES2015) { + if (getEmitModuleFormatOfFile(currentSourceFile) >= ModuleKind.ES2015) { return esmOnSubstituteNode(hint, node); } return cjsOnSubstituteNode(hint, node); @@ -67,14 +66,14 @@ export function transformImpliedNodeFormatDependentModule(context: Transformatio if (!currentSourceFile) { return previousOnEmitNode(hint, node, emitCallback); } - if (getEmitModuleFormatOfFile(currentSourceFile, compilerOptions) >= ModuleKind.ES2015) { + if (getEmitModuleFormatOfFile(currentSourceFile) >= ModuleKind.ES2015) { return esmOnEmitNode(hint, node, emitCallback); } return cjsOnEmitNode(hint, node, emitCallback); } function getModuleTransformForFile(file: SourceFile): typeof esmTransform { - return getEmitModuleFormatOfFile(file, compilerOptions) >= ModuleKind.ES2015 ? esmTransform : cjsTransform; + return getEmitModuleFormatOfFile(file) >= ModuleKind.ES2015 ? esmTransform : cjsTransform; } function transformSourceFile(node: SourceFile) { diff --git a/src/compiler/transformers/module/module.ts b/src/compiler/transformers/module/module.ts index ea2744b19494d..290f732acead4 100644 --- a/src/compiler/transformers/module/module.ts +++ b/src/compiler/transformers/module/module.ts @@ -137,7 +137,6 @@ import { setOriginalNode, setTextRange, ShorthandPropertyAssignment, - shouldTransformImportCall, singleOrMany, some, SourceFile, @@ -786,7 +785,7 @@ export function transformModule(context: TransformationContext): (x: SourceFile case SyntaxKind.PartiallyEmittedExpression: return visitPartiallyEmittedExpression(node as PartiallyEmittedExpression, valueIsDiscarded); case SyntaxKind.CallExpression: - if (isImportCall(node) && shouldTransformImportCall(currentSourceFile, compilerOptions)) { + if (isImportCall(node) && host.shouldTransformImportCall(currentSourceFile)) { return visitImportCallExpression(node); } break; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 262d1391f2752..d61ae94ed8b77 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4737,6 +4737,16 @@ export interface Program extends ScriptReferenceHost { * ``` */ getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode; + /** + * @internal + * The resolution mode to use for module resolution or module specifier resolution + * outside the context of an existing module reference, where + * `program.getModeForUsageLocation` should be used instead. + */ + getDefaultResolutionModeForFile(sourceFile: SourceFile): ResolutionMode; + /** @internal */ getImpliedNodeFormatForEmit(sourceFile: SourceFile): ResolutionMode; + /** @internal */ getEmitModuleFormatOfFile(sourceFile: SourceFile): ModuleKind; + /** @internal */ shouldTransformImportCall(sourceFile: SourceFile): boolean; // For testing purposes only. // This is set on created program to let us know how the program was created using old program @@ -4910,6 +4920,9 @@ export interface TypeCheckerHost extends ModuleSpecifierResolutionHost { getEmitSyntaxForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode; getRedirectReferenceForResolutionFromSourceOfProject(filePath: Path): ResolvedProjectReference | undefined; getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode; + getDefaultResolutionModeForFile(sourceFile: SourceFile): ResolutionMode; + getImpliedNodeFormatForEmit(sourceFile: SourceFile): ResolutionMode; + getEmitModuleFormatOfFile(sourceFile: SourceFile): ModuleKind; getResolvedModule(f: SourceFile, moduleName: string, mode: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined; @@ -8253,6 +8266,8 @@ export interface EmitHost extends ScriptReferenceHost, ModuleSpecifierResolution getCanonicalFileName(fileName: string): string; isEmitBlocked(emitFileName: string): boolean; + shouldTransformImportCall(sourceFile: SourceFile): boolean; + getEmitModuleFormatOfFile(sourceFile: SourceFile): ModuleKind; writeFile: WriteFileCallback; getBuildInfo(): BuildInfo | undefined; @@ -9629,6 +9644,7 @@ export interface ModuleSpecifierResolutionHost { isSourceOfProjectReferenceRedirect(fileName: string): boolean; getFileIncludeReasons(): MultiMap; getCommonSourceDirectory(): string; + getDefaultResolutionModeForFile(sourceFile: SourceFile): ResolutionMode; } /** @internal */ diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index dea904d39c214..725420569bc34 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -164,6 +164,7 @@ import { getCommonSourceDirectory, getContainerFlags, getDirectoryPath, + getImpliedNodeFormatForEmitWorker, getJSDocAugmentsTag, getJSDocDeprecatedTagNoCache, getJSDocImplementsTags, @@ -8574,7 +8575,7 @@ function isFileForcedToBeModuleByFormat(file: SourceFile, options: CompilerOptio // that aren't esm-mode (meaning not in a `type: module` scope). // // TODO: extension check never considered compilerOptions; should impliedNodeFormat? - return (getImpliedNodeFormatForEmit(file, options) === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts, Extension.Mjs, Extension.Mts]))) && !file.isDeclarationFile ? true : undefined; + return (getImpliedNodeFormatForEmitWorker(file, options) === ModuleKind.ESNext || (fileExtensionIsOneOf(file.fileName, [Extension.Cjs, Extension.Cts, Extension.Mjs, Extension.Mts]))) && !file.isDeclarationFile ? true : undefined; } /** @internal */ @@ -8618,53 +8619,6 @@ export function importSyntaxAffectsModuleResolution(options: CompilerOptions) { || getResolvePackageJsonImports(options); } -/** - * @internal - * The resolution mode to use for module resolution or module specifier resolution - * outside the context of an existing module reference, where - * `program.getModeForUsageLocation` should be used instead. - */ -export function getDefaultResolutionModeForFile(sourceFile: Pick, options: CompilerOptions): ResolutionMode { - return importSyntaxAffectsModuleResolution(options) ? getImpliedNodeFormatForEmit(sourceFile, options) : undefined; -} - -/** @internal */ -export function getImpliedNodeFormatForEmit(sourceFile: Pick, options: CompilerOptions): ResolutionMode { - const moduleKind = getEmitModuleKind(options); - if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext) { - return sourceFile.impliedNodeFormat; - } - if ( - sourceFile.impliedNodeFormat === ModuleKind.CommonJS - && (sourceFile.packageJsonScope?.contents.packageJsonContent.type === "commonjs" - || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cjs, Extension.Cts])) - ) { - return ModuleKind.CommonJS; - } - if ( - sourceFile.impliedNodeFormat === ModuleKind.ESNext - && (sourceFile.packageJsonScope?.contents.packageJsonContent.type === "module" - || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Mjs, Extension.Mts])) - ) { - return ModuleKind.ESNext; - } - return undefined; -} - -/** @internal */ -export function shouldTransformImportCall(sourceFile: Pick, options: CompilerOptions): boolean { - const moduleKind = getEmitModuleKind(options); - if (ModuleKind.Node16 <= moduleKind && moduleKind <= ModuleKind.NodeNext || moduleKind === ModuleKind.Preserve) { - return false; - } - return getEmitModuleFormatOfFile(sourceFile, options) < ModuleKind.ES2015; -} - -/** @internal */ -export function getEmitModuleFormatOfFile(sourceFile: Pick, options: CompilerOptions): ModuleKind { - return getImpliedNodeFormatForEmit(sourceFile, options) ?? getEmitModuleKind(options); -} - type CompilerOptionKeys = keyof { [K in keyof CompilerOptions as string extends K ? never : K]: any; }; function createComputedCompilerOptions>( options: { diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index f3066a137bbee..459fdc8617952 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -56,7 +56,7 @@ import { getDefaultLibFileName, getDirectoryPath, getEmitScriptTarget, - getImpliedNodeFormatForEmit, + getImpliedNodeFormatForEmitWorker, getLineAndCharacterOfPosition, getNewLineCharacter, getNormalizedAbsolutePath, @@ -379,7 +379,7 @@ export function explainIfFileIsRedirectAndImpliedFormat( )); } if (isExternalOrCommonJsModule(file)) { - switch (getImpliedNodeFormatForEmit(file, options)) { + switch (getImpliedNodeFormatForEmitWorker(file, options)) { case ModuleKind.ESNext: if (file.packageJsonScope) { (result ??= []).push(chainDiagnosticMessages( diff --git a/src/services/codefixes/importFixes.ts b/src/services/codefixes/importFixes.ts index cc0e5c6afb108..9c0c6289a4bf5 100644 --- a/src/services/codefixes/importFixes.ts +++ b/src/services/codefixes/importFixes.ts @@ -38,12 +38,10 @@ import { getDefaultExportInfoWorker, getDefaultLikeExportInfo, getDirectoryPath, - getEmitModuleFormatOfFile, getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, getExportInfoMap, - getImpliedNodeFormatForEmit, getMeaningFromDeclaration, getMeaningFromLocation, getNameForExportedSymbol, @@ -430,7 +428,7 @@ export interface ImportSpecifierResolver { /** @internal */ export function createImportSpecifierResolver(importingFile: SourceFile, program: Program, host: LanguageServiceHost, preferences: UserPreferences): ImportSpecifierResolver { const packageJsonImportFilter = createPackageJsonImportFilter(importingFile, preferences, host); - const importMap = createExistingImportMap(program.getTypeChecker(), importingFile, program.getCompilerOptions()); + const importMap = createExistingImportMap(importingFile, program); return { getModuleSpecifierForBestExportInfo }; function getModuleSpecifierForBestExportInfo( @@ -635,7 +633,7 @@ function getImportFixes( sourceFile: SourceFile, host: LanguageServiceHost, preferences: UserPreferences, - importMap = createExistingImportMap(program.getTypeChecker(), sourceFile, program.getCompilerOptions()), + importMap = createExistingImportMap(sourceFile, program), fromCacheOnly?: boolean, ): { computedWithoutCacheCount: number; fixes: readonly ImportFixWithModuleSpecifier[]; } { const checker = program.getTypeChecker(); @@ -800,7 +798,8 @@ function tryAddToExistingImport(existingImports: readonly FixAddToExistingImport } } -function createExistingImportMap(checker: TypeChecker, importingFile: SourceFile, compilerOptions: CompilerOptions) { +function createExistingImportMap(importingFile: SourceFile, program: Program) { + const checker = program.getTypeChecker(); let importMap: MultiMap | undefined; for (const moduleSpecifier of importingFile.imports) { const i = importFromModuleSpecifier(moduleSpecifier); @@ -830,7 +829,7 @@ function createExistingImportMap(checker: TypeChecker, importingFile: SourceFile && !every(matchingDeclarations, isJSDocImportTag) ) return emptyArray; - const importKind = getImportKind(importingFile, exportKind, compilerOptions); + const importKind = getImportKind(importingFile, exportKind, program); return matchingDeclarations.map(declaration => ({ declaration, importKind, symbol, targetFlags })); }, }; @@ -855,8 +854,8 @@ function shouldUseRequire(sourceFile: SourceFile, program: Program): boolean { // 4. In --module nodenext, assume we're not emitting JS -> JS, so use // whatever syntax Node expects based on the detected module kind // TODO: consider removing `impliedNodeFormatForEmit` - if (getImpliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.CommonJS) return true; - if (getImpliedNodeFormatForEmit(sourceFile, compilerOptions) === ModuleKind.ESNext) return false; + if (program.getImpliedNodeFormatForEmit(sourceFile) === ModuleKind.CommonJS) return true; + if (program.getImpliedNodeFormatForEmit(sourceFile) === ModuleKind.ESNext) return false; // 5. Match the first other JS file in the program that's unambiguously CJS or ESM for (const otherFile of program.getSourceFiles()) { @@ -909,7 +908,7 @@ function getNewImportFixes( // `position` should only be undefined at a missing jsx namespace, in which case we shouldn't be looking for pure types. return { kind: ImportFixKind.JsdocTypeImport, moduleSpecifier, usagePosition, exportInfo, isReExport: i > 0 }; } - const importKind = getImportKind(sourceFile, exportInfo.exportKind, compilerOptions); + const importKind = getImportKind(sourceFile, exportInfo.exportKind, program); let qualification: Qualification | undefined; if (usagePosition !== undefined && importKind === ImportKind.CommonJS && exportInfo.exportKind === ExportKind.Named) { // Compiler options are restricting our import options to a require, but we need to access @@ -1120,8 +1119,8 @@ function getUmdSymbol(token: Node, checker: TypeChecker): Symbol | undefined { * * @internal */ -export function getImportKind(importingFile: SourceFile, exportKind: ExportKind, compilerOptions: CompilerOptions, forceImportKeyword?: boolean): ImportKind { - if (compilerOptions.verbatimModuleSyntax && getEmitModuleFormatOfFile(importingFile, compilerOptions) === ModuleKind.CommonJS) { +export function getImportKind(importingFile: SourceFile, exportKind: ExportKind, program: Program, forceImportKeyword?: boolean): ImportKind { + if (program.getCompilerOptions().verbatimModuleSyntax && program.getEmitModuleFormatOfFile(importingFile) === ModuleKind.CommonJS) { // TODO: if the exporting file is ESM under nodenext, or `forceImport` is given in a JS file, this is impossible return ImportKind.CommonJS; } @@ -1131,22 +1130,22 @@ export function getImportKind(importingFile: SourceFile, exportKind: ExportKind, case ExportKind.Default: return ImportKind.Default; case ExportKind.ExportEquals: - return getExportEqualsImportKind(importingFile, compilerOptions, !!forceImportKeyword); + return getExportEqualsImportKind(importingFile, program.getCompilerOptions(), !!forceImportKeyword); case ExportKind.UMD: - return getUmdImportKind(importingFile, compilerOptions, !!forceImportKeyword); + return getUmdImportKind(importingFile, program, !!forceImportKeyword); default: return Debug.assertNever(exportKind); } } -function getUmdImportKind(importingFile: SourceFile, compilerOptions: CompilerOptions, forceImportKeyword: boolean): ImportKind { +function getUmdImportKind(importingFile: SourceFile, program: Program, forceImportKeyword: boolean): ImportKind { // Import a synthetic `default` if enabled. - if (getAllowSyntheticDefaultImports(compilerOptions)) { + if (getAllowSyntheticDefaultImports(program.getCompilerOptions())) { return ImportKind.Default; } // When a synthetic `default` is unavailable, use `import..require` if the module kind supports it. - const moduleKind = getEmitModuleKind(compilerOptions); + const moduleKind = getEmitModuleKind(program.getCompilerOptions()); switch (moduleKind) { case ModuleKind.AMD: case ModuleKind.CommonJS: @@ -1166,7 +1165,7 @@ function getUmdImportKind(importingFile: SourceFile, compilerOptions: CompilerOp return ImportKind.Namespace; case ModuleKind.Node16: case ModuleKind.NodeNext: - return getImpliedNodeFormatForEmit(importingFile, compilerOptions) === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.CommonJS; + return program.getImpliedNodeFormatForEmit(importingFile) === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.CommonJS; default: return Debug.assertNever(moduleKind, `Unexpected moduleKind ${moduleKind}`); } diff --git a/src/services/completions.ts b/src/services/completions.ts index db9b52646454f..1f01acb01d46f 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -1721,7 +1721,7 @@ function createCompletionEntry( if (originIsResolvedExport(origin)) { sourceDisplay = [textPart(origin.moduleSpecifier)]; if (importStatementCompletion) { - ({ insertText, replacementSpan } = getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences)); + ({ insertText, replacementSpan } = getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, program, preferences)); isSnippet = preferences.includeCompletionsWithSnippetText ? true : undefined; } } @@ -2492,14 +2492,14 @@ function completionEntryDataToSymbolOriginInfo(data: CompletionEntryData, comple return unresolvedOrigin; } -function getInsertTextAndReplacementSpanForImportCompletion(name: string, importStatementCompletion: ImportStatementCompletionInfo, origin: SymbolOriginInfoResolvedExport, useSemicolons: boolean, sourceFile: SourceFile, options: CompilerOptions, preferences: UserPreferences) { +function getInsertTextAndReplacementSpanForImportCompletion(name: string, importStatementCompletion: ImportStatementCompletionInfo, origin: SymbolOriginInfoResolvedExport, useSemicolons: boolean, sourceFile: SourceFile, program: Program, preferences: UserPreferences) { const replacementSpan = importStatementCompletion.replacementSpan; const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier)); const exportKind = origin.isDefaultExport ? ExportKind.Default : origin.exportName === InternalSymbolName.ExportEquals ? ExportKind.ExportEquals : ExportKind.Named; const tabStop = preferences.includeCompletionsWithSnippetText ? "$1" : ""; - const importKind = codefix.getImportKind(sourceFile, exportKind, options, /*forceImportKeyword*/ true); + const importKind = codefix.getImportKind(sourceFile, exportKind, program, /*forceImportKeyword*/ true); const isImportSpecifierTypeOnly = importStatementCompletion.couldBeTypeOnlyImportSpecifier; const topLevelTypeOnlyText = importStatementCompletion.isTopLevelTypeOnly ? ` ${tokenToString(SyntaxKind.TypeKeyword)} ` : " "; const importSpecifierTypeOnlyText = isImportSpecifierTypeOnly ? `${tokenToString(SyntaxKind.TypeKeyword)} ` : ""; diff --git a/src/services/goToDefinition.ts b/src/services/goToDefinition.ts index 87f691e9ec84a..39544563f2509 100644 --- a/src/services/goToDefinition.ts +++ b/src/services/goToDefinition.ts @@ -26,7 +26,6 @@ import { FunctionLikeDeclaration, getAssignmentDeclarationKind, getContainingObjectLiteralElement, - getDefaultResolutionModeForFile, getDirectoryPath, getEffectiveBaseTypeNode, getInvokedExpression, @@ -345,7 +344,7 @@ export function getReferenceAtPosition(sourceFile: SourceFile, position: number, const typeReferenceDirective = findReferenceInPosition(sourceFile.typeReferenceDirectives, position); if (typeReferenceDirective) { - const reference = program.getResolvedTypeReferenceDirectives().get(typeReferenceDirective.fileName, typeReferenceDirective.resolutionMode || getDefaultResolutionModeForFile(sourceFile, program.getCompilerOptions()))?.resolvedTypeReferenceDirective; + const reference = program.getResolvedTypeReferenceDirectives().get(typeReferenceDirective.fileName, typeReferenceDirective.resolutionMode || program.getDefaultResolutionModeForFile(sourceFile))?.resolvedTypeReferenceDirective; const file = reference && program.getSourceFile(reference.resolvedFileName!); // TODO:GH#18217 return file && { reference: typeReferenceDirective, fileName: file.fileName, file, unverified: false }; } diff --git a/src/services/importTracker.ts b/src/services/importTracker.ts index 775968921ff13..516df4dbdb5b4 100644 --- a/src/services/importTracker.ts +++ b/src/services/importTracker.ts @@ -17,7 +17,6 @@ import { findAncestor, forEach, getAssignmentDeclarationKind, - getDefaultResolutionModeForFile, getFirstIdentifier, getNameOfAccessExpression, getSourceFileOfNode, @@ -472,7 +471,6 @@ export type ModuleReference = export function findModuleReferences(program: Program, sourceFiles: readonly SourceFile[], searchModuleSymbol: Symbol): ModuleReference[] { const refs: ModuleReference[] = []; const checker = program.getTypeChecker(); - const compilerOptions = program.getCompilerOptions(); for (const referencingFile of sourceFiles) { const searchSourceFile = searchModuleSymbol.valueDeclaration; if (searchSourceFile?.kind === SyntaxKind.SourceFile) { @@ -482,7 +480,7 @@ export function findModuleReferences(program: Program, sourceFiles: readonly Sou } } for (const ref of referencingFile.typeReferenceDirectives) { - const referenced = program.getResolvedTypeReferenceDirectives().get(ref.fileName, ref.resolutionMode || getDefaultResolutionModeForFile(referencingFile, compilerOptions))?.resolvedTypeReferenceDirective; + const referenced = program.getResolvedTypeReferenceDirectives().get(ref.fileName, ref.resolutionMode || program.getDefaultResolutionModeForFile(referencingFile))?.resolvedTypeReferenceDirective; if (referenced !== undefined && referenced.resolvedFileName === (searchSourceFile as SourceFile).fileName) { refs.push({ kind: "reference", referencingFile, ref }); } diff --git a/src/services/stringCompletions.ts b/src/services/stringCompletions.ts index b5115345cd582..97f0110c386d8 100644 --- a/src/services/stringCompletions.ts +++ b/src/services/stringCompletions.ts @@ -199,7 +199,7 @@ export function getStringLiteralCompletions( includeSymbol: boolean, ): CompletionInfo | undefined { if (isInReferenceComment(sourceFile, position)) { - const entries = getTripleSlashReferenceCompletion(sourceFile, position, options, host); + const entries = getTripleSlashReferenceCompletion(sourceFile, position, program, host); return entries && convertPathCompletions(entries); } if (isInString(sourceFile, position, contextToken)) { @@ -595,8 +595,8 @@ function getStringLiteralCompletionsFromModuleNamesWorker(sourceFile: SourceFile const extensionOptions = getExtensionOptions(compilerOptions, ReferenceKind.ModuleSpecifier, sourceFile, typeChecker, preferences, mode); return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && !compilerOptions.paths && (isRootedDiskPath(literalValue) || isUrl(literalValue)) - ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) - : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker); + ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, program, host, scriptPath, extensionOptions) + : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, program, host, extensionOptions); } interface ExtensionOptions { @@ -616,20 +616,21 @@ function getExtensionOptions(compilerOptions: CompilerOptions, referenceKind: Re resolutionMode, }; } -function getCompletionEntriesForRelativeModules(literalValue: string, scriptDirectory: string, compilerOptions: CompilerOptions, host: LanguageServiceHost, scriptPath: Path, extensionOptions: ExtensionOptions) { +function getCompletionEntriesForRelativeModules(literalValue: string, scriptDirectory: string, program: Program, host: LanguageServiceHost, scriptPath: Path, extensionOptions: ExtensionOptions) { + const compilerOptions = program.getCompilerOptions(); if (compilerOptions.rootDirs) { return getCompletionEntriesForDirectoryFragmentWithRootDirs( compilerOptions.rootDirs, literalValue, scriptDirectory, extensionOptions, - compilerOptions, + program, host, scriptPath, ); } else { - return arrayFrom(getCompletionEntriesForDirectoryFragment(literalValue, scriptDirectory, extensionOptions, host, /*moduleSpecifierIsRelative*/ true, scriptPath).values()); + return arrayFrom(getCompletionEntriesForDirectoryFragment(literalValue, scriptDirectory, extensionOptions, program, host, /*moduleSpecifierIsRelative*/ true, scriptPath).values()); } } @@ -667,12 +668,13 @@ function getBaseDirectoriesFromRootDirs(rootDirs: string[], basePath: string, sc ); } -function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs: string[], fragment: string, scriptDirectory: string, extensionOptions: ExtensionOptions, compilerOptions: CompilerOptions, host: LanguageServiceHost, exclude: string): readonly NameAndKind[] { +function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs: string[], fragment: string, scriptDirectory: string, extensionOptions: ExtensionOptions, program: Program, host: LanguageServiceHost, exclude: string): readonly NameAndKind[] { + const compilerOptions = program.getCompilerOptions(); const basePath = compilerOptions.project || host.getCurrentDirectory(); const ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames()); const baseDirectories = getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase); return deduplicate( - flatMap(baseDirectories, baseDirectory => arrayFrom(getCompletionEntriesForDirectoryFragment(fragment, baseDirectory, extensionOptions, host, /*moduleSpecifierIsRelative*/ true, exclude).values())), + flatMap(baseDirectories, baseDirectory => arrayFrom(getCompletionEntriesForDirectoryFragment(fragment, baseDirectory, extensionOptions, program, host, /*moduleSpecifierIsRelative*/ true, exclude).values())), (itemA, itemB) => itemA.name === itemB.name && itemA.kind === itemB.kind && itemA.extension === itemB.extension, ); } @@ -688,6 +690,7 @@ function getCompletionEntriesForDirectoryFragment( fragment: string, scriptDirectory: string, extensionOptions: ExtensionOptions, + program: Program, host: LanguageServiceHost, moduleSpecifierIsRelative: boolean, exclude?: string, @@ -727,7 +730,7 @@ function getCompletionEntriesForDirectoryFragment( if (versionPaths) { const packageDirectory = getDirectoryPath(packageJsonPath); const pathInPackage = absolutePath.slice(ensureTrailingDirectorySeparator(packageDirectory).length); - if (addCompletionEntriesFromPaths(result, pathInPackage, packageDirectory, extensionOptions, host, versionPaths)) { + if (addCompletionEntriesFromPaths(result, pathInPackage, packageDirectory, extensionOptions, program, host, versionPaths)) { // A true result means one of the `versionPaths` was matched, which will block relative resolution // to files and folders from here. All reachable paths given the pattern match are already added. return result; @@ -750,7 +753,7 @@ function getCompletionEntriesForDirectoryFragment( continue; } - const { name, extension } = getFilenameWithExtensionOption(getBaseFileName(filePath), host.getCompilationSettings(), extensionOptions, /*isExportsWildcard*/ false); + const { name, extension } = getFilenameWithExtensionOption(getBaseFileName(filePath), program, extensionOptions, /*isExportsWildcard*/ false); result.add(nameAndKind(name, ScriptElementKind.scriptElement, extension)); } } @@ -770,7 +773,7 @@ function getCompletionEntriesForDirectoryFragment( return result; } -function getFilenameWithExtensionOption(name: string, compilerOptions: CompilerOptions, extensionOptions: ExtensionOptions, isExportsWildcard: boolean): { name: string; extension: Extension | undefined; } { +function getFilenameWithExtensionOption(name: string, program: Program, extensionOptions: ExtensionOptions, isExportsWildcard: boolean): { name: string; extension: Extension | undefined; } { const nonJsResult = moduleSpecifiers.tryGetRealFileNameForNonJsDeclarationFileName(name); if (nonJsResult) { return { name: nonJsResult, extension: tryGetExtensionFromPath(nonJsResult) }; @@ -781,7 +784,8 @@ function getFilenameWithExtensionOption(name: string, compilerOptions: CompilerO let allowedEndings = getModuleSpecifierPreferences( { importModuleSpecifierEnding: extensionOptions.endingPreference }, - compilerOptions, + program, + program.getCompilerOptions(), extensionOptions.importingSourceFile, ).getAllowedEndingsInPreferredOrder(extensionOptions.resolutionMode); @@ -795,7 +799,7 @@ function getFilenameWithExtensionOption(name: string, compilerOptions: CompilerO if (fileExtensionIsOneOf(name, supportedTSImplementationExtensions)) { return { name, extension: tryGetExtensionFromPath(name) }; } - const outputExtension = moduleSpecifiers.tryGetJSExtensionForFile(name, compilerOptions); + const outputExtension = moduleSpecifiers.tryGetJSExtensionForFile(name, program.getCompilerOptions()); return outputExtension ? { name: changeExtension(name, outputExtension), extension: outputExtension } : { name, extension: tryGetExtensionFromPath(name) }; @@ -809,7 +813,7 @@ function getFilenameWithExtensionOption(name: string, compilerOptions: CompilerO return { name: removeFileExtension(name), extension: tryGetExtensionFromPath(name) }; } - const outputExtension = moduleSpecifiers.tryGetJSExtensionForFile(name, compilerOptions); + const outputExtension = moduleSpecifiers.tryGetJSExtensionForFile(name, program.getCompilerOptions()); return outputExtension ? { name: changeExtension(name, outputExtension), extension: outputExtension } : { name, extension: tryGetExtensionFromPath(name) }; @@ -821,6 +825,7 @@ function addCompletionEntriesFromPaths( fragment: string, baseDirectory: string, extensionOptions: ExtensionOptions, + program: Program, host: LanguageServiceHost, paths: MapLike, ) { @@ -832,7 +837,7 @@ function addCompletionEntriesFromPaths( const lengthB = typeof patternB === "object" ? patternB.prefix.length : b.length; return compareValues(lengthB, lengthA); }; - return addCompletionEntriesFromPathsOrExports(result, /*isExports*/ false, fragment, baseDirectory, extensionOptions, host, getOwnKeys(paths), getPatternsForKey, comparePaths); + return addCompletionEntriesFromPathsOrExports(result, /*isExports*/ false, fragment, baseDirectory, extensionOptions, program, host, getOwnKeys(paths), getPatternsForKey, comparePaths); } /** @returns whether `fragment` was a match for any `paths` (which should indicate whether any other path completions should be offered) */ @@ -842,6 +847,7 @@ function addCompletionEntriesFromPathsOrExports( fragment: string, baseDirectory: string, extensionOptions: ExtensionOptions, + program: Program, host: LanguageServiceHost, keys: readonly string[], getPatternsForKey: (key: string) => string[] | undefined, @@ -876,7 +882,7 @@ function addCompletionEntriesFromPathsOrExports( if (typeof pathPattern === "string" || matchedPath === undefined || comparePaths(key, matchedPath) !== Comparison.GreaterThan) { pathResults.push({ matchedPattern: isMatch, - results: getCompletionsForPathMapping(keyWithoutLeadingDotSlash, patterns, fragment, baseDirectory, extensionOptions, isExports && isMatch, host) + results: getCompletionsForPathMapping(keyWithoutLeadingDotSlash, patterns, fragment, baseDirectory, extensionOptions, isExports && isMatch, program, host) .map(({ name, kind, extension }) => nameAndKind(name, kind, extension)), }); } @@ -898,11 +904,12 @@ function getCompletionEntriesForNonRelativeModules( fragment: string, scriptPath: string, mode: ResolutionMode, - compilerOptions: CompilerOptions, + program: Program, host: LanguageServiceHost, extensionOptions: ExtensionOptions, - typeChecker: TypeChecker, ): readonly NameAndKind[] { + const typeChecker = program.getTypeChecker(); + const compilerOptions = program.getCompilerOptions(); const { baseUrl, paths } = compilerOptions; const result = createNameAndKindSet(); @@ -910,12 +917,12 @@ function getCompletionEntriesForNonRelativeModules( if (baseUrl) { const absolute = normalizePath(combinePaths(host.getCurrentDirectory(), baseUrl)); - getCompletionEntriesForDirectoryFragment(fragment, absolute, extensionOptions, host, /*moduleSpecifierIsRelative*/ false, /*exclude*/ undefined, result); + getCompletionEntriesForDirectoryFragment(fragment, absolute, extensionOptions, program, host, /*moduleSpecifierIsRelative*/ false, /*exclude*/ undefined, result); } if (paths) { const absolute = getPathsBasePath(compilerOptions, host)!; - addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths); + addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, program, host, paths); } const fragmentDirectory = getFragmentDirectory(fragment); @@ -923,7 +930,7 @@ function getCompletionEntriesForNonRelativeModules( result.add(nameAndKind(ambientName, ScriptElementKind.externalModuleName, /*extension*/ undefined)); } - getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, fragmentDirectory, extensionOptions, result); + getCompletionEntriesFromTypings(host, program, scriptPath, fragmentDirectory, extensionOptions, result); if (moduleResolutionUsesNodeModules(moduleResolution)) { // If looking for a global package name, don't just include everything in `node_modules` because that includes dependencies' own dependencies. @@ -942,7 +949,7 @@ function getCompletionEntriesForNonRelativeModules( let ancestorLookup: (directory: string) => void | undefined = ancestor => { const nodeModules = combinePaths(ancestor, "node_modules"); if (tryDirectoryExists(host, nodeModules)) { - getCompletionEntriesForDirectoryFragment(fragment, nodeModules, extensionOptions, host, /*moduleSpecifierIsRelative*/ false, /*exclude*/ undefined, result); + getCompletionEntriesForDirectoryFragment(fragment, nodeModules, extensionOptions, program, host, /*moduleSpecifierIsRelative*/ false, /*exclude*/ undefined, result); } }; if (fragmentDirectory && getResolvePackageJsonExports(compilerOptions)) { @@ -979,6 +986,7 @@ function getCompletionEntriesForNonRelativeModules( fragmentSubpath, packageDirectory, extensionOptions, + program, host, keys, key => singleElementArray(getPatternFromFirstMatchingCondition(exports[key], conditions)), @@ -1022,6 +1030,7 @@ function getCompletionsForPathMapping( packageDirectory: string, extensionOptions: ExtensionOptions, isExportsWildcard: boolean, + program: Program, host: LanguageServiceHost, ): readonly NameAndKind[] { if (!endsWith(path, "*")) { @@ -1033,9 +1042,9 @@ function getCompletionsForPathMapping( const remainingFragment = tryRemovePrefix(fragment, pathPrefix); if (remainingFragment === undefined) { const starIsFullPathComponent = path[path.length - 2] === "/"; - return starIsFullPathComponent ? justPathMappingName(pathPrefix, ScriptElementKind.directory) : flatMap(patterns, pattern => getModulesForPathsPattern("", packageDirectory, pattern, extensionOptions, isExportsWildcard, host)?.map(({ name, ...rest }) => ({ name: pathPrefix + name, ...rest }))); + return starIsFullPathComponent ? justPathMappingName(pathPrefix, ScriptElementKind.directory) : flatMap(patterns, pattern => getModulesForPathsPattern("", packageDirectory, pattern, extensionOptions, isExportsWildcard, program, host)?.map(({ name, ...rest }) => ({ name: pathPrefix + name, ...rest }))); } - return flatMap(patterns, pattern => getModulesForPathsPattern(remainingFragment, packageDirectory, pattern, extensionOptions, isExportsWildcard, host)); + return flatMap(patterns, pattern => getModulesForPathsPattern(remainingFragment, packageDirectory, pattern, extensionOptions, isExportsWildcard, program, host)); function justPathMappingName(name: string, kind: ScriptElementKind.directory | ScriptElementKind.scriptElement): readonly NameAndKind[] { return startsWith(name, fragment) ? [{ name: removeTrailingDirectorySeparator(name), kind, extension: undefined }] : emptyArray; @@ -1048,6 +1057,7 @@ function getModulesForPathsPattern( pattern: string, extensionOptions: ExtensionOptions, isExportsWildcard: boolean, + program: Program, host: LanguageServiceHost, ): readonly NameAndKind[] | undefined { if (!host.readDirectory) { @@ -1096,7 +1106,7 @@ function getModulesForPathsPattern( if (containsSlash(trimmedWithPattern)) { return directoryResult(getPathComponents(removeLeadingDirectorySeparator(trimmedWithPattern))[1]); } - const { name, extension } = getFilenameWithExtensionOption(trimmedWithPattern, host.getCompilationSettings(), extensionOptions, isExportsWildcard); + const { name, extension } = getFilenameWithExtensionOption(trimmedWithPattern, program, extensionOptions, isExportsWildcard); return nameAndKind(name, ScriptElementKind.scriptElement, extension); } }); @@ -1140,7 +1150,8 @@ function getAmbientModuleCompletions(fragment: string, fragmentDirectory: string return nonRelativeModuleNames; } -function getTripleSlashReferenceCompletion(sourceFile: SourceFile, position: number, compilerOptions: CompilerOptions, host: LanguageServiceHost): readonly PathCompletion[] | undefined { +function getTripleSlashReferenceCompletion(sourceFile: SourceFile, position: number, program: Program, host: LanguageServiceHost): readonly PathCompletion[] | undefined { + const compilerOptions = program.getCompilerOptions(); const token = getTokenAtPosition(sourceFile, position); const commentRanges = getLeadingCommentRanges(sourceFile.text, token.pos); const range = commentRanges && find(commentRanges, commentRange => position >= commentRange.pos && position <= commentRange.end); @@ -1155,13 +1166,14 @@ function getTripleSlashReferenceCompletion(sourceFile: SourceFile, position: num const [, prefix, kind, toComplete] = match; const scriptPath = getDirectoryPath(sourceFile.path); - const names = kind === "path" ? getCompletionEntriesForDirectoryFragment(toComplete, scriptPath, getExtensionOptions(compilerOptions, ReferenceKind.Filename, sourceFile), host, /*moduleSpecifierIsRelative*/ true, sourceFile.path) - : kind === "types" ? getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, getFragmentDirectory(toComplete), getExtensionOptions(compilerOptions, ReferenceKind.ModuleSpecifier, sourceFile)) + const names = kind === "path" ? getCompletionEntriesForDirectoryFragment(toComplete, scriptPath, getExtensionOptions(compilerOptions, ReferenceKind.Filename, sourceFile), program, host, /*moduleSpecifierIsRelative*/ true, sourceFile.path) + : kind === "types" ? getCompletionEntriesFromTypings(host, program, scriptPath, getFragmentDirectory(toComplete), getExtensionOptions(compilerOptions, ReferenceKind.ModuleSpecifier, sourceFile)) : Debug.fail(); return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values())); } -function getCompletionEntriesFromTypings(host: LanguageServiceHost, options: CompilerOptions, scriptPath: string, fragmentDirectory: string | undefined, extensionOptions: ExtensionOptions, result = createNameAndKindSet()): NameAndKindSet { +function getCompletionEntriesFromTypings(host: LanguageServiceHost, program: Program, scriptPath: string, fragmentDirectory: string | undefined, extensionOptions: ExtensionOptions, result = createNameAndKindSet()): NameAndKindSet { + const options = program.getCompilerOptions(); // Check for typings specified in compiler options const seen = new Map(); @@ -1196,7 +1208,7 @@ function getCompletionEntriesFromTypings(host: LanguageServiceHost, options: Com const baseDirectory = combinePaths(directory, typeDirectoryName); const remainingFragment = tryRemoveDirectoryPrefix(fragmentDirectory, packageName, hostGetCanonicalFileName(host)); if (remainingFragment !== undefined) { - getCompletionEntriesForDirectoryFragment(remainingFragment, baseDirectory, extensionOptions, host, /*moduleSpecifierIsRelative*/ false, /*exclude*/ undefined, result); + getCompletionEntriesForDirectoryFragment(remainingFragment, baseDirectory, extensionOptions, program, host, /*moduleSpecifierIsRelative*/ false, /*exclude*/ undefined, result); } } } diff --git a/src/services/suggestionDiagnostics.ts b/src/services/suggestionDiagnostics.ts index c7147b1ab9bf7..91e99ba9450db 100644 --- a/src/services/suggestionDiagnostics.ts +++ b/src/services/suggestionDiagnostics.ts @@ -23,7 +23,6 @@ import { getAllowSyntheticDefaultImports, getAssignmentDeclarationKind, getFunctionFlags, - getImpliedNodeFormatForEmit, hasInitializer, hasPropertyAccessExpressionWithName, Identifier, @@ -67,7 +66,7 @@ export function computeSuggestionDiagnostics(sourceFile: SourceFile, program: Pr program.getSemanticDiagnostics(sourceFile, cancellationToken); const diags: DiagnosticWithLocation[] = []; const checker = program.getTypeChecker(); - const isCommonJSFile = getImpliedNodeFormatForEmit(sourceFile, program.getCompilerOptions()) === ModuleKind.CommonJS || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cts, Extension.Cjs]); + const isCommonJSFile = program.getImpliedNodeFormatForEmit(sourceFile) === ModuleKind.CommonJS || fileExtensionIsOneOf(sourceFile.fileName, [Extension.Cts, Extension.Cjs]); if ( !isCommonJSFile && diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 84ba9e26455ed..97ba449660b9b 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -96,7 +96,7 @@ import { getEmitModuleKind, getEmitScriptTarget, getExternalModuleImportEqualsDeclarationExpression, - getImpliedNodeFormatForEmit, + getImpliedNodeFormatForEmitWorker, getImpliedNodeFormatForFile, getIndentString, getJSDocEnumTag, @@ -2482,6 +2482,7 @@ export function createModuleSpecifierResolutionHost(program: Program, host: Lang getNearestAncestorDirectoryWithPackageJson: maybeBind(host, host.getNearestAncestorDirectoryWithPackageJson), getFileIncludeReasons: () => program.getFileIncludeReasons(), getCommonSourceDirectory: () => program.getCommonSourceDirectory(), + getDefaultResolutionModeForFile: file => program.getDefaultResolutionModeForFile(file), }; } @@ -4246,13 +4247,13 @@ export function fileShouldUseJavaScriptRequire(file: SourceFile | string, progra if (!hasJSFileExtension(fileName)) { return false; } - const compilerOptions = program.getCompilerOptions(); + const compilerOptions = typeof file === "string" ? program.getCompilerOptions() : program.getCompilerOptionsForFile(file); const moduleKind = getEmitModuleKind(compilerOptions); const sourceFileLike = typeof file === "string" ? { fileName: file, impliedNodeFormat: getImpliedNodeFormatForFile(toPath(file, host.getCurrentDirectory(), hostGetCanonicalFileName(host)), program.getPackageJsonInfoCache?.(), host, compilerOptions), } : file; - const impliedNodeFormat = getImpliedNodeFormatForEmit(sourceFileLike, compilerOptions); + const impliedNodeFormat = getImpliedNodeFormatForEmitWorker(sourceFileLike, compilerOptions); if (impliedNodeFormat === ModuleKind.ESNext) { return false; From ffaa6e20876b41057c6a725f0bb9e6f1e16c3c5d Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Wed, 3 Apr 2024 17:06:58 -0700 Subject: [PATCH 12/12] Update other use of getModeForResolutionAtIndex --- src/compiler/checker.ts | 1 + src/compiler/moduleSpecifiers.ts | 3 +-- src/compiler/types.ts | 1 + src/services/utilities.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 5676ea6466dab..e90b6cb8257f4 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -51324,6 +51324,7 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host: TypeCheckerHo getFileIncludeReasons: () => host.getFileIncludeReasons(), readFile: host.readFile ? (fileName => host.readFile!(fileName)) : undefined, getDefaultResolutionModeForFile: file => host.getDefaultResolutionModeForFile(file), + getModeForResolutionAtIndex: (file, index) => host.getModeForResolutionAtIndex(file, index), }; } diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index 129a28db9d6ff..3ba012fb075df 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -37,7 +37,6 @@ import { getConditions, getDirectoryPath, getEmitModuleResolutionKind, - getModeForResolutionAtIndex, getModuleNameStringLiteralAt, getModuleSpecifierEndingPreference, getNodeModulePathParts, @@ -391,7 +390,7 @@ function computeModuleSpecifiers( if (reason.kind !== FileIncludeKind.Import || reason.file !== importingSourceFile.path) return undefined; // If the candidate import mode doesn't match the mode we're generating for, don't consider it // TODO: maybe useful to keep around as an alternative option for certain contexts where the mode is overridable - const existingMode = getModeForResolutionAtIndex(importingSourceFile, reason.index, compilerOptions); + const existingMode = host.getModeForResolutionAtIndex(importingSourceFile, reason.index); const targetMode = options.overrideImportMode ?? host.getDefaultResolutionModeForFile(importingSourceFile); if (existingMode !== targetMode && existingMode !== undefined && targetMode !== undefined) { return undefined; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index d61ae94ed8b77..62c635a122aae 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -9645,6 +9645,7 @@ export interface ModuleSpecifierResolutionHost { getFileIncludeReasons(): MultiMap; getCommonSourceDirectory(): string; getDefaultResolutionModeForFile(sourceFile: SourceFile): ResolutionMode; + getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode; } /** @internal */ diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 97ba449660b9b..128c164e5a7c8 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -2483,6 +2483,7 @@ export function createModuleSpecifierResolutionHost(program: Program, host: Lang getFileIncludeReasons: () => program.getFileIncludeReasons(), getCommonSourceDirectory: () => program.getCommonSourceDirectory(), getDefaultResolutionModeForFile: file => program.getDefaultResolutionModeForFile(file), + getModeForResolutionAtIndex: (file, index) => program.getModeForResolutionAtIndex(file, index), }; }